migrate (add table PlacementAppointmentEmployee)
This commit is contained in:
parent
a4447b9014
commit
74281c697c
6 changed files with 19786 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using BMA.EHR.Domain.Models.Base;
|
||||||
|
|
||||||
|
namespace BMA.EHR.Domain.Models.Placement
|
||||||
|
{
|
||||||
|
public class PlacementAppointmentEmployee : EntityBase
|
||||||
|
{
|
||||||
|
[Comment("profile Id")]
|
||||||
|
public string? profileId { get; set; }
|
||||||
|
[Comment("คำนำหน้า")]
|
||||||
|
public string? prefix { get; set; }
|
||||||
|
[Comment("ชื่อ")]
|
||||||
|
public string? firstName { get; set; }
|
||||||
|
[Comment("นามสกุล")]
|
||||||
|
public string? lastName { get; set; }
|
||||||
|
[Comment("เลขบัตรประชาชน")]
|
||||||
|
public string? citizenId { get; set; }
|
||||||
|
|
||||||
|
[Comment("ชื่อหน่วยงาน root")]
|
||||||
|
public string? root { get; set; }
|
||||||
|
|
||||||
|
[Comment("id หน่วยงาน root")]
|
||||||
|
public string? rootId { get; set; }
|
||||||
|
|
||||||
|
[Comment("ชื่อย่อหน่วยงาน root")]
|
||||||
|
public string? rootShortName { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
19591
BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs
generated
Normal file
19591
BMA.EHR.Infrastructure/Migrations/20250204092259_add table placementAppointEmployee.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,60 @@
|
||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace BMA.EHR.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class addtableplacementAppointEmployee : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "PlacementAppointmentEmployee",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"),
|
||||||
|
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"),
|
||||||
|
CreatedUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
LastUpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"),
|
||||||
|
LastUpdateUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
CreatedFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
LastUpdateFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
profileId = table.Column<string>(type: "longtext", nullable: true, comment: "profile Id")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
prefix = table.Column<string>(type: "longtext", nullable: true, comment: "คำนำหน้า")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
firstName = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อ")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
lastName = table.Column<string>(type: "longtext", nullable: true, comment: "นามสกุล")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
citizenId = table.Column<string>(type: "longtext", nullable: true, comment: "เลขบัตรประชาชน")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
root = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อหน่วยงาน root")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
rootId = table.Column<string>(type: "longtext", nullable: true, comment: "id หน่วยงาน root")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||||
|
rootShortName = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อย่อหน่วยงาน root")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4")
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_PlacementAppointmentEmployee", x => x.Id);
|
||||||
|
})
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "PlacementAppointmentEmployee");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -11723,6 +11723,90 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
b.ToTable("PlacementAppointmentDocs");
|
b.ToTable("PlacementAppointmentDocs");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee", 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>("citizenId")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("เลขบัตรประชาชน");
|
||||||
|
|
||||||
|
b.Property<string>("firstName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("ชื่อ");
|
||||||
|
|
||||||
|
b.Property<string>("lastName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("นามสกุล");
|
||||||
|
|
||||||
|
b.Property<string>("prefix")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("คำนำหน้า");
|
||||||
|
|
||||||
|
b.Property<string>("profileId")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("profile Id");
|
||||||
|
|
||||||
|
b.Property<string>("root")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("ชื่อหน่วยงาน root");
|
||||||
|
|
||||||
|
b.Property<string>("rootId")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("id หน่วยงาน root");
|
||||||
|
|
||||||
|
b.Property<string>("rootShortName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("ชื่อย่อหน่วยงาน root");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("PlacementAppointmentEmployee");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b =>
|
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,7 @@ namespace BMA.EHR.Infrastructure.Persistence
|
||||||
public DbSet<PlacementReceive> PlacementReceives { get; set; }
|
public DbSet<PlacementReceive> PlacementReceives { get; set; }
|
||||||
public DbSet<PlacementRelocation> PlacementRelocations { get; set; }
|
public DbSet<PlacementRelocation> PlacementRelocations { get; set; }
|
||||||
public DbSet<PlacementAppointment> PlacementAppointments { get; set; }
|
public DbSet<PlacementAppointment> PlacementAppointments { get; set; }
|
||||||
|
public DbSet<PlacementAppointmentEmployee> PlacementAppointmentEmployee { get; set; }
|
||||||
public DbSet<PlacementTransferDoc> PlacementTransferDocs { get; set; }
|
public DbSet<PlacementTransferDoc> PlacementTransferDocs { get; set; }
|
||||||
public DbSet<PlacementReceiveDoc> PlacementReceiveDocs { get; set; }
|
public DbSet<PlacementReceiveDoc> PlacementReceiveDocs { get; set; }
|
||||||
public DbSet<PlacementRelocationDoc> PlacementRelocationDocs { get; set; }
|
public DbSet<PlacementRelocationDoc> PlacementRelocationDocs { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
using BMA.EHR.Domain.Models.MetaData;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace BMA.EHR.Placement.Service.Requests
|
||||||
|
{
|
||||||
|
public class ReportExecutePlacementAppointRequest
|
||||||
|
{
|
||||||
|
public ReportExecutePlacementAppointRequestObj[] profileEmps { get; set; }
|
||||||
|
}
|
||||||
|
public class ReportExecutePlacementAppointRequestObj
|
||||||
|
{
|
||||||
|
public string? profileId { get; set; }
|
||||||
|
public string? prefix { get; set; }
|
||||||
|
public string? firstName { get; set; }
|
||||||
|
public string? lastName { get; set; }
|
||||||
|
public string? citizenId { get; set; }
|
||||||
|
public string? root { get; set; }
|
||||||
|
public string? rootId { get; set; }
|
||||||
|
public string? rootShortName { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue