Add Migration for Discipline Service
This commit is contained in:
parent
ff711c38df
commit
5bb6cfbee8
26 changed files with 7386 additions and 170 deletions
|
|
@ -27,10 +27,10 @@ namespace BMA.EHR.Domain.Models.Commands.Core
|
|||
[MaxLength(100), Required, Comment("นามสกุล")]
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text"), Comment("หมายเหตุ")]
|
||||
[Column(TypeName = "NCLOB"), Comment("หมายเหตุ")]
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text"), Comment("หมายเหตุแนวนอน")]
|
||||
[Column(TypeName = "NCLOB"), Comment("หมายเหตุแนวนอน")]
|
||||
public string Comment2 { get; set; } = string.Empty;
|
||||
|
||||
[Comment("รหัสอ้างอิงไปยังข้อมูลผู้บรรจุ")]
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, Comment("ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)")]
|
||||
public string RespondentType { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "text")]
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
|
||||
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, Comment("สถานะอุทธรณ์/ร้องทุกข์")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[Comment("เรื่องที่อุทธรณ์/ร้องทุกข์"), Column(TypeName = "text")]
|
||||
[Comment("เรื่องที่อุทธรณ์/ร้องทุกข์"), Column(TypeName = "NCLOB")]
|
||||
public string? Title { get; set; } = string.Empty;
|
||||
|
||||
[Comment("รายละเอียดของเรื่องอุทธรณ์/ร้องทุกข์"), Column(TypeName = "text")]
|
||||
[Comment("รายละเอียดของเรื่องอุทธรณ์/ร้องทุกข์"), Column(TypeName = "NCLOB")]
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ประเภทอุทธรณ์หรือร้องทุกข์")]
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, Comment("ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)")]
|
||||
public string RespondentType { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "text")]
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
|
||||
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, Comment("ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)")]
|
||||
public string RespondentType { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "text")]
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
|
||||
[Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
|
||||
[Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Comment("วันสิ้นสุดการสั่งพักราชการ/ให้ออกจากราชการไว้ก่อน")]
|
||||
public DateTime? EndDateSuspend { get; set; }
|
||||
|
||||
[Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "text")]
|
||||
[Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "NCLOB")]
|
||||
public string? Title { get; set; } = string.Empty;
|
||||
[Comment("ลักษณะความผิดครั้งแรกจะเป็น 'ยังไม่ระบุ' (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)")]
|
||||
public string? OffenseDetails { get; set; } = string.Empty;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, MaxLength(128)]
|
||||
public string FileType { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
[Column(TypeName = "NCLOB")]
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace BMA.EHR.Domain.Models.HR
|
|||
// public int Order { get; set; }
|
||||
[Comment("ระดับความผิด")]
|
||||
public string? Level { get; set; }
|
||||
[Column(TypeName = "text")]
|
||||
[Column(TypeName = "NCLOB")]
|
||||
[Comment("รายละเอียด")]
|
||||
public string? Detail { get; set; }
|
||||
[Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")]
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace BMA.EHR.Domain.Models.HR
|
|||
{
|
||||
[Comment("ระดับความผิด")]
|
||||
public string? Level { get; set; }
|
||||
[Column(TypeName = "text")]
|
||||
[Column(TypeName = "NCLOB")]
|
||||
[Comment("รายละเอียด")]
|
||||
public string? Detail { get; set; }
|
||||
[Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")]
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace BMA.EHR.Domain.Models.Insignias
|
|||
[Required, MaxLength(50)]
|
||||
public string RequestStatus { get; set; }
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
[Column(TypeName = "NCLOB")]
|
||||
public string RequestNote { get; set; }
|
||||
|
||||
public InsigniaPeriod Period { get; set; }
|
||||
|
|
|
|||
|
|
@ -22,13 +22,13 @@ namespace BMA.EHR.Domain.Models.Insignias
|
|||
// [MaxLength(50)]
|
||||
// public string? DocumentStatus { get; set; }
|
||||
|
||||
// [Column(TypeName = "text")]
|
||||
// [Column(TypeName = "NCLOB")]
|
||||
// public string? Note { get; set; }
|
||||
|
||||
// [MaxLength(50)]
|
||||
// public string? Special { get; set; }
|
||||
|
||||
[Column(TypeName = "text"), Comment("รายละเอียดเครื่องราชฯที่ขอ")]
|
||||
[Column(TypeName = "NCLOB"), Comment("รายละเอียดเครื่องราชฯที่ขอ")]
|
||||
public string? MatchingConditions { get; set; }
|
||||
|
||||
[Comment("สถานะตำแหน่งที่ยื่นขอ")]
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ namespace BMA.EHR.Domain.Models.Notifications
|
|||
[Required, MaxLength(200), Comment("หัวเรื่อง")]
|
||||
public string Subject { get; set; }
|
||||
|
||||
[Required, Column(TypeName = "text"), Comment("รายละเอียดข้อความ")]
|
||||
[Required, Column(TypeName = "NCLOB"), Comment("รายละเอียดข้อความ")]
|
||||
public string Body { get; set; }
|
||||
|
||||
[Required, Comment("รหัสผู้รับข้อความ")]
|
||||
public Guid ReceiverUserId { get; set; }
|
||||
|
||||
[Column(TypeName = "text"), Comment("สิงที่แนบมาด้วย")]
|
||||
[Column(TypeName = "NCLOB"), Comment("สิงที่แนบมาด้วย")]
|
||||
public string Payload { get; set; }
|
||||
|
||||
[Comment("เปิดอ่านแล้วหรือยัง")]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace BMA.EHR.Domain.Models.Notifications
|
|||
{
|
||||
public class Notification : EntityBase
|
||||
{
|
||||
[Required, Column(TypeName = "text"), Comment("รายละเอียดข้อความ")]
|
||||
[Required, Column(TypeName = "NCLOB"), Comment("รายละเอียดข้อความ")]
|
||||
public string Body { get; set; }
|
||||
|
||||
[Required, Comment("รหัสผู้รับข้อความ")]
|
||||
|
|
@ -16,7 +16,7 @@ namespace BMA.EHR.Domain.Models.Notifications
|
|||
[Required, Comment("ประเภทการแจ้งเตือน")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[Column(TypeName = "text"), Comment("สิงที่แนบมาด้วย")]
|
||||
[Column(TypeName = "NCLOB"), Comment("สิงที่แนบมาด้วย")]
|
||||
public string Payload { get; set; }
|
||||
|
||||
[Comment("เปิดอ่านแล้วหรือยัง")]
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ namespace BMA.EHR.Domain.Models.Probation
|
|||
[Required, MaxLength(200), Comment("หัวเรื่อง")]
|
||||
public string Subject { get; set; }
|
||||
|
||||
[Required, Column(TypeName = "text"), Comment("รายละเอียดข้อความ")]
|
||||
[Required, Column(TypeName = "NCLOB"), Comment("รายละเอียดข้อความ")]
|
||||
public string Body { get; set; }
|
||||
|
||||
[Required, Comment("รหัสผู้รับข้อความ")]
|
||||
public Guid ReceiverUserId { get; set; }
|
||||
|
||||
[Column(TypeName = "text"), Comment("สิงที่แนบมาด้วย")]
|
||||
[Column(TypeName = "NCLOB"), Comment("สิงที่แนบมาด้วย")]
|
||||
public string Payload { get; set; } = "";
|
||||
|
||||
[Required, Comment("ส่งอีเมล์หรือไม่?")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue