hrms-api-backend/BMA.EHR.Infrastructure/Migrations/ApplicationDBContextModelSnapshot.cs
Suphonchai Phoonsawat 1ba2f2eec1 Restructure TAble
2023-06-25 18:36:02 +07:00

373 lines
16 KiB
C#

// <auto-generated />
using System;
using BMA.EHR.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Oracle.EntityFrameworkCore.Metadata;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDBContext))]
partial class ApplicationDBContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
OracleModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.BloodGroup.BloodGroupDraftEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<bool>("IsActive")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(990)
.HasComment("สถานะการใช้งาน");
b.Property<bool>("IsPublished")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(899)
.HasComment("สถานะการเผยแพร่ข้อมูล");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("NVARCHAR2(2)")
.HasColumnOrder(1)
.HasComment("ชื่อหมู่โลหิต");
b.HasKey("Id");
b.ToTable("MD_BloodGroup_Drafts");
});
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.BloodGroup.BloodGroupEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<bool>("IsActive")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(990)
.HasComment("สถานะการใช้งาน");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("NVARCHAR2(2)")
.HasColumnOrder(1)
.HasComment("ชื่อหมู่โลหิต");
b.HasKey("Id");
b.ToTable("MD_BloodGroups");
});
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.BloodGroup.BloodGroupPublishHistoryEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<string>("Detail")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(1)
.HasComment("รายละเอียดการแก้ไข");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("ObjectValue")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(2)
.HasComment("เก็บ Object ที่มีการอัพเดตในระบบ");
b.HasKey("Id");
b.ToTable("MD_BloodGroup_Histories");
});
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.Prefix.PrefixDraftEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<bool>("IsActive")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(990)
.HasComment("สถานะการใช้งาน");
b.Property<bool>("IsPublished")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(899)
.HasComment("สถานะการเผยแพร่ข้อมูล");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("NVARCHAR2(100)")
.HasColumnOrder(1)
.HasComment("รายละเอียดคำนำหน้า");
b.HasKey("Id");
b.ToTable("MD_Prefix_Drafts");
});
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.Prefix.PrefixEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<bool>("IsActive")
.HasColumnType("NUMBER(1)")
.HasColumnOrder(990)
.HasComment("สถานะการใช้งาน");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("NVARCHAR2(100)")
.HasColumnOrder(1)
.HasComment("รายละเอียดคำนำหน้า");
b.HasKey("Id");
b.ToTable("MD_Prefixes");
});
modelBuilder.Entity("BMA.EHR.Domain.Entities.MetaData.Prefix.PrefixPublishHistoryEntity", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("RAW(16)")
.HasColumnOrder(0)
.HasComment("คีย์หลัก");
b.Property<DateTime>("CreatedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(993)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedUserFullName")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(992)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<Guid>("CreatedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(991)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<string>("Detail")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(1)
.HasComment("รายละเอียดการแก้ไข");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("TIMESTAMP(7)")
.HasColumnOrder(996)
.HasComment("แก้ไขข้อมูลเมื่อ");
b.Property<string>("ModifiedUserFullName")
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(995)
.HasComment("ชื่อ User ที่แก้ไขข้อมูล");
b.Property<Guid?>("ModifiedUserId")
.HasColumnType("RAW(16)")
.HasColumnOrder(994)
.HasComment("User Id ที่แก้ไขข้อมูล");
b.Property<string>("ObjectValue")
.IsRequired()
.HasColumnType("NVARCHAR2(2000)")
.HasColumnOrder(2)
.HasComment("เก็บ Object ที่มีการอัพเดตในระบบ");
b.HasKey("Id");
b.ToTable("MD_Prefix_Histories");
});
#pragma warning restore 612, 618
}
}
}