yavsc/Yavsc.Server/Models/EMailing/MailingTemplate.cs

65 lines
1.4 KiB
C#
Raw Normal View History

2018-04-14 19:35:28 +02:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models;
using Yavsc.Models.Calendar;
2018-04-18 18:15:40 +02:00
namespace Yavsc.Server.Models.EMailing
2018-04-14 19:35:28 +02:00
{
2018-04-18 18:15:40 +02:00
public class MailingTemplate : IBaseTrackedEntity
2018-04-14 19:35:28 +02:00
{
/// <summary>
/// Date Created
/// </summary>
/// <returns></returns>
public DateTime DateCreated
{
get;
set;
}
public DateTime DateModified
{
get;
set;
}
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
2018-04-26 21:02:11 +02:00
[MaxLengthAttribute(128),MinLength(3)]
2018-05-02 04:09:51 +02:00
public string Topic { get; set; }
2018-04-14 19:35:28 +02:00
/// <summary>
/// Markdown template to process
/// </summary>
/// <returns></returns>
[MaxLengthAttribute(64*1024)]
public string Body { get; set; }
[EmailAddress()]
public string ReplyToAddress { get; set; }
[ForeignKey("ManagerId")]
public virtual ApplicationUser Manager { get; set; }
public Periodicity ToSend { get; set; }
public string ManagerId
{
get;
set;
}
public string UserCreated
{
get;
set;
}
public string UserModified
{
get;
set;
}
}
2018-04-18 18:15:40 +02:00
}