mailling template key

This commit is contained in:
Paul Schneider
2021-05-30 13:48:24 +01:00
parent 0201ea64e6
commit 691d445ae0
12 changed files with 3141 additions and 110 deletions

View File

@ -23,17 +23,17 @@ namespace Yavsc.Server.Models.EMailing
set;
}
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[Key][MaxLength(256),MinLength(3)]
public string Id { get; set; }
[MaxLengthAttribute(128),MinLength(3)]
[MaxLength(256),MinLength(3)]
public string Topic { get; set; }
/// <summary>
/// Markdown template to process
/// </summary>
/// <returns></returns>
[MaxLengthAttribute(64*1024)]
[MaxLength(64*1024)]
public string Body { get; set; }
[EmailAddress()]