hrms-api-backend/BMA.EHR.Domain/Models/Probation/CronjobNotiProbation.cs
2023-09-08 15:23:41 +07:00

38 lines
1.5 KiB
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.MetaData;
using BMA.EHR.Domain.Models.Organizations;
using BMA.EHR.Domain.Models.Documents;
using BMA.EHR.Domain.Models.HR;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Domain.Models.Probation
{
public class CronjobNotiProbation : EntityBase
{
[Required, MaxLength(200), Comment("หัวเรื่อง")]
public string Subject { get; set; }
[Required, Column(TypeName = "text"), Comment("รายละเอียดข้อความ")]
public string Body { get; set; }
[Required, Comment("รหัสผู้รับข้อความ")]
public Guid ReceiverUserId { get; set; }
[Column(TypeName = "text"), Comment("สิงที่แนบมาด้วย")]
public string Payload { get; set; } = "";
[Required, Comment("ส่งอีเมล์หรือไม่?")]
public bool IsSendMail { get; set; } = false;
[Required, Comment("ส่งกล่องข้อความหรือไม่?")]
public bool IsSendInbox { get; set; } = false;
[Required, Comment("ส่งการแจ้งเตือนหรือยัง")]
public bool IsSendNoti { get; set; } = false;
[Required, Comment("วันที่ได้รับ")]
public DateTime ReceiveDate { get; set; } = DateTime.Now;
}
}