20 lines
701 B
C#
20 lines
701 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Mail
|
|
{
|
|
public class MailDetails
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ProjectId { get; set; }
|
|
public string Recipient { get; set; } = string.Empty; // Eamil Address of recipient
|
|
public string Schedule { get; set; } = string.Empty; // json object which includes when to send mail and at what interval
|
|
public Guid MailListId { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(MailListId))]
|
|
public MailingList? MailBody { get; set; }
|
|
public Guid TenantId { get; set; }
|
|
|
|
}
|
|
}
|