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

@ -12,7 +12,7 @@ using Oracle.EntityFrameworkCore.Metadata;
namespace BMA.EHR.Infrastructure.Migrations
{
[DbContext(typeof(LeaveDbContext))]
[Migration("20240503063836_Init Oracle Project")]
[Migration("20240503070436_Init Oracle Project")]
partial class InitOracleProject
{
/// <inheritdoc />

View file

@ -12,7 +12,7 @@ using Oracle.EntityFrameworkCore.Metadata;
namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
{
[DbContext(typeof(ApplicationDBContext))]
[Migration("20240503065717_Init Oracle Project")]
[Migration("20240503070505_Init Oracle Project")]
partial class InitOracleProject
{
/// <inheritdoc />
@ -526,12 +526,12 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Comment")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("หมายเหตุ");
b.Property<string>("Comment2")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("หมายเหตุแนวนอน");
b.Property<DateTime>("CreatedAt")
@ -2684,7 +2684,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("วัน เดือน ปี");
b.Property<string>("Detail")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียด");
b.Property<string>("LastUpdateFullName")
@ -2764,7 +2764,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("วัน เดือน ปี");
b.Property<string>("Detail")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียด");
b.Property<string>("LastUpdateFullName")
@ -6465,7 +6465,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("RequestNote")
.IsRequired()
.HasColumnType("text");
.HasColumnType("NCLOB");
b.Property<string>("RequestStatus")
.IsRequired()
@ -6546,7 +6546,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
b.Property<string>("MatchingConditions")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดเครื่องราชฯที่ขอ");
b.Property<Guid>("ProfileId")
@ -9534,7 +9534,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -9589,7 +9589,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")
@ -9722,7 +9722,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -9777,7 +9777,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")
@ -13943,7 +13943,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -13998,7 +13998,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")

View file

@ -62,9 +62,9 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
CreatedFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล"),
LastUpdateFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด"),
Subject = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "หัวเรื่อง"),
Body = table.Column<string>(type: "text(2000)", nullable: false, comment: "รายละเอียดข้อความ"),
Body = table.Column<string>(type: "NCLOB", nullable: false, comment: "รายละเอียดข้อความ"),
ReceiverUserId = table.Column<Guid>(type: "RAW(16)", nullable: false, comment: "รหัสผู้รับข้อความ"),
Payload = table.Column<string>(type: "text(2000)", nullable: false, comment: "สิงที่แนบมาด้วย"),
Payload = table.Column<string>(type: "NCLOB", nullable: false, comment: "สิงที่แนบมาด้วย"),
IsSendMail = table.Column<bool>(type: "NUMBER(1)", nullable: false, comment: "ส่งอีเมล์หรือไม่?"),
IsSendInbox = table.Column<bool>(type: "NUMBER(1)", nullable: false, comment: "ส่งกล่องข้อความหรือไม่?"),
IsSendNoti = table.Column<bool>(type: "NUMBER(1)", nullable: false, comment: "ส่งการแจ้งเตือนหรือยัง"),
@ -106,9 +106,9 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
CreatedFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล"),
LastUpdateFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด"),
Subject = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "หัวเรื่อง"),
Body = table.Column<string>(type: "text(2000)", nullable: false, comment: "รายละเอียดข้อความ"),
Body = table.Column<string>(type: "NCLOB", nullable: false, comment: "รายละเอียดข้อความ"),
ReceiverUserId = table.Column<Guid>(type: "RAW(16)", nullable: false, comment: "รหัสผู้รับข้อความ"),
Payload = table.Column<string>(type: "text(2000)", nullable: false, comment: "สิงที่แนบมาด้วย"),
Payload = table.Column<string>(type: "NCLOB", nullable: false, comment: "สิงที่แนบมาด้วย"),
IsOpen = table.Column<bool>(type: "NUMBER(1)", nullable: false, comment: "เปิดอ่านแล้วหรือยัง"),
ReceiveDate = table.Column<DateTime>(type: "TIMESTAMP(7)", nullable: false, comment: "วันที่ได้รับ"),
OpenDate = table.Column<DateTime>(type: "TIMESTAMP(7)", nullable: true, comment: "วันที่เปิดอ่าน"),
@ -234,10 +234,10 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
LastUpdateUserId = table.Column<string>(type: "NVARCHAR2(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด"),
CreatedFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล"),
LastUpdateFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด"),
Body = table.Column<string>(type: "text(2000)", nullable: false, comment: "รายละเอียดข้อความ"),
Body = table.Column<string>(type: "NCLOB", nullable: false, comment: "รายละเอียดข้อความ"),
ReceiverUserId = table.Column<Guid>(type: "RAW(16)", nullable: false, comment: "รหัสผู้รับข้อความ"),
Type = table.Column<string>(type: "NVARCHAR2(2000)", nullable: false, comment: "ประเภทการแจ้งเตือน"),
Payload = table.Column<string>(type: "text(2000)", nullable: false, comment: "สิงที่แนบมาด้วย"),
Payload = table.Column<string>(type: "NCLOB", nullable: false, comment: "สิงที่แนบมาด้วย"),
IsOpen = table.Column<bool>(type: "NUMBER(1)", nullable: false, comment: "เปิดอ่านแล้วหรือยัง"),
ReceiveDate = table.Column<DateTime>(type: "TIMESTAMP(7)", nullable: false, comment: "วันที่ได้รับ"),
OpenDate = table.Column<DateTime>(type: "TIMESTAMP(7)", nullable: true, comment: "วันที่เปิดอ่าน"),
@ -1344,7 +1344,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
CreatedFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล"),
LastUpdateFullName = table.Column<string>(type: "NVARCHAR2(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด"),
RequestStatus = table.Column<string>(type: "NVARCHAR2(50)", maxLength: 50, nullable: false),
RequestNote = table.Column<string>(type: "text(2000)", nullable: false),
RequestNote = table.Column<string>(type: "NCLOB", nullable: false),
PeriodId = table.Column<Guid>(type: "RAW(16)", nullable: false),
OrganizationId = table.Column<Guid>(type: "RAW(16)", nullable: false),
DocumentId = table.Column<Guid>(type: "RAW(16)", nullable: true)
@ -1820,7 +1820,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
RequestDate = table.Column<DateTime>(type: "TIMESTAMP(7)", nullable: false),
Salary = table.Column<double>(type: "BINARY_DOUBLE", nullable: true),
IsApprove = table.Column<bool>(type: "NUMBER(1)", nullable: false),
MatchingConditions = table.Column<string>(type: "text(2000)", nullable: true, comment: "รายละเอียดเครื่องราชฯที่ขอ"),
MatchingConditions = table.Column<string>(type: "NCLOB", nullable: true, comment: "รายละเอียดเครื่องราชฯที่ขอ"),
Status = table.Column<string>(type: "NVARCHAR2(2000)", nullable: false, comment: "สถานะตำแหน่งที่ยื่นขอ"),
ReasonReject = table.Column<string>(type: "NVARCHAR2(2000)", nullable: true, comment: "เหตุผลไม่ยื่นขอ"),
Reason = table.Column<string>(type: "NVARCHAR2(2000)", nullable: true, comment: "เหตุผลการได้รับเครื่องราชฯ"),
@ -2301,8 +2301,8 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
Prefix = table.Column<string>(type: "NVARCHAR2(50)", maxLength: 50, nullable: false, comment: "คำนำหน้านาม"),
FirstName = table.Column<string>(type: "NVARCHAR2(100)", maxLength: 100, nullable: false, comment: "ชื่อ"),
LastName = table.Column<string>(type: "NVARCHAR2(100)", maxLength: 100, nullable: false, comment: "นามสกุล"),
Comment = table.Column<string>(type: "text(2000)", nullable: false, comment: "หมายเหตุ"),
Comment2 = table.Column<string>(type: "text(2000)", nullable: false, comment: "หมายเหตุแนวนอน"),
Comment = table.Column<string>(type: "NCLOB", nullable: false, comment: "หมายเหตุ"),
Comment2 = table.Column<string>(type: "NCLOB", nullable: false, comment: "หมายเหตุแนวนอน"),
RefPlacementProfileId = table.Column<Guid>(type: "RAW(16)", nullable: true, comment: "รหัสอ้างอิงไปยังข้อมูลผู้บรรจุ"),
RefDisciplineId = table.Column<Guid>(type: "RAW(16)", nullable: true, comment: "รหัสอ้างอิงไปยังข้อมูลวินัย"),
Amount = table.Column<double>(type: "BINARY_DOUBLE", nullable: true, comment: "เงินเดือน"),

View file

@ -523,12 +523,12 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Comment")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("หมายเหตุ");
b.Property<string>("Comment2")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("หมายเหตุแนวนอน");
b.Property<DateTime>("CreatedAt")
@ -2681,7 +2681,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("วัน เดือน ปี");
b.Property<string>("Detail")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียด");
b.Property<string>("LastUpdateFullName")
@ -2761,7 +2761,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("วัน เดือน ปี");
b.Property<string>("Detail")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียด");
b.Property<string>("LastUpdateFullName")
@ -6462,7 +6462,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("RequestNote")
.IsRequired()
.HasColumnType("text");
.HasColumnType("NCLOB");
b.Property<string>("RequestStatus")
.IsRequired()
@ -6543,7 +6543,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
.HasComment("แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
b.Property<string>("MatchingConditions")
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดเครื่องราชฯที่ขอ");
b.Property<Guid>("ProfileId")
@ -9531,7 +9531,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -9586,7 +9586,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")
@ -9719,7 +9719,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -9774,7 +9774,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")
@ -13940,7 +13940,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Body")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("รายละเอียดข้อความ");
b.Property<DateTime>("CreatedAt")
@ -13995,7 +13995,7 @@ namespace BMA.EHR.Infrastructure.Migrations.ApplicationDB
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text")
.HasColumnType("NCLOB")
.HasComment("สิงที่แนบมาด้วย");
b.Property<DateTime>("ReceiveDate")

File diff suppressed because it is too large Load diff