Merge branch 'develop' into work

# Conflicts:
#	BMA.EHR.Application/ApplicationServicesRegistration.cs
#	BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs
#	BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs
#	BMA.EHR.Solution.sln
This commit is contained in:
Kittapath 2023-07-13 09:57:58 +07:00
commit 8edfbc7466
70 changed files with 21946 additions and 157 deletions

View file

@ -0,0 +1,39 @@
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;
}
}