83 lines
3.4 KiB
C#
83 lines
3.4 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BMA.EHR.Infrastructure.Persistence;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|
{
|
|
[DbContext(typeof(DisciplineDbContext))]
|
|
[Migration("20231117102708_create table DisciplineComplaint1")]
|
|
partial class createtableDisciplineComplaint1
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.9")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
modelBuilder.Entity("BMA.EHR.Domain.Models.OrganizationEmployee.DisciplineComplaint", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)")
|
|
.HasColumnOrder(0)
|
|
.HasComment("PrimaryKey")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)")
|
|
.HasColumnOrder(100)
|
|
.HasComment("สร้างข้อมูลเมื่อ");
|
|
|
|
b.Property<string>("CreatedFullName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("varchar(200)")
|
|
.HasColumnOrder(104)
|
|
.HasComment("ชื่อ User ที่สร้างข้อมูล");
|
|
|
|
b.Property<string>("CreatedUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("varchar(40)")
|
|
.HasColumnOrder(101)
|
|
.HasComment("User Id ที่สร้างข้อมูล");
|
|
|
|
b.Property<string>("LastUpdateFullName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("varchar(200)")
|
|
.HasColumnOrder(105)
|
|
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
|
|
|
|
b.Property<string>("LastUpdateUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("varchar(40)")
|
|
.HasColumnOrder(103)
|
|
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
|
|
|
|
b.Property<DateTime?>("LastUpdatedAt")
|
|
.HasColumnType("datetime(6)")
|
|
.HasColumnOrder(102)
|
|
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
|
|
|
b.Property<string>("RespondentType")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DisciplineComplaints");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|