39 lines
1.7 KiB
C#
39 lines
1.7 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Domain.Models.Notifications
|
|
{
|
|
public class MessageQueueEntity : EntityBase
|
|
{
|
|
[Required, MaxLength(200), Comment("ส่งจากระบบงาน")]
|
|
public string SenderSystem { get; set; }
|
|
|
|
[Required, MaxLength(200), Comment("หัวเรื่อง")]
|
|
public string Subject { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รายละเอียดข้อความ")]
|
|
public string MessageContent { get; set; } = string.Empty;
|
|
|
|
[Comment("สิ่งที่แนบมาด้วย")]
|
|
public string MessagePayLoad { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รหัสของผู้รับข้อความ")]
|
|
public Guid ReceiverUserId { get; set; } = Guid.Empty;
|
|
|
|
[MaxLength(500), Comment("อีเมล์ของผู้รับ")]
|
|
public string ReceiverEmailAddress { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("ส่งอีเมลล์หรือไม่?")]
|
|
public bool IsSendEmail { get; set; } = false;
|
|
|
|
[Required, Comment("ส่งไปที่กล่องข้อความหรือไม่?")]
|
|
public bool IsSendInbox { get; set; } = false;
|
|
|
|
[Required, Comment("ส่งการแจ้งเตือนหรือไม่?")]
|
|
public bool IsSendNotification { get; set; } = true;
|
|
|
|
[Required, Comment("ทำการส่งข้อความแล้วหรือยัง?")]
|
|
public bool IsSend { get; set; } = false;
|
|
}
|
|
}
|