Limiting Notification string fields

This commit is contained in:
rockstardev
2020-06-12 00:16:50 -05:00
parent 0c170fc399
commit 2f4967a23a
3 changed files with 31 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -9,10 +10,13 @@ namespace BTCPayServer.Data
{
public class NotificationData
{
[MaxLength(36)]
public string Id { get; set; }
public DateTimeOffset Created { get; set; }
[MaxLength(50)]
public string ApplicationUserId { get; set; }
public ApplicationUser ApplicationUser { get; set; }
[MaxLength(100)]
public string NotificationType { get; set; }
public bool Seen { get; set; }
public byte[] Blob { get; set; }