Add Migration for Discipline Service

This commit is contained in:
Suphonchai Phoonsawat 2024-05-03 14:17:30 +07:00
parent ff711c38df
commit 5bb6cfbee8
26 changed files with 7386 additions and 170 deletions

View file

@ -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("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]

View file

@ -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("ประเภทอุทธรณ์หรือร้องทุกข์")]

View file

@ -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("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]

View file

@ -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("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]

View file

@ -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;

View file

@ -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]