# Conflicts:
#	APT.MS.Data/Mapping/T4/T4Map.cs
#	APT.MicroApi/APT.SC.WebApi/Controllers/Api/OGController/06OGConfigController.cs
#	APT.MicroApi/APT.SC.WebApi/Controllers/Api/T4/T4Control.cs
This commit is contained in:
wyw 2024-01-26 17:39:01 +08:00
commit 9528fbf04a
4 changed files with 95814 additions and 205 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,143 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace APT.Data.Migrations.Migrations
{
public partial class wjn2024012602 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "T_OG_OGCONFIG");
migrationBuilder.DropTable(
name: "T_OG_PERSONNEL_TYPE_ENUM");
migrationBuilder.DropTable(
name: "T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "T_OG_OGCONFIG",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
EMPLOYEE_OPINION_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
EVENT_GET_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
EVENT_GET_TIME_1 = table.Column<DateTime>(type: "datetime2", nullable: true),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
REPORT_SUM_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
SAFE_PDT_PERSONAL_SIGNED_TRIGGER_TIME = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_T_OG_OGCONFIG", x => x.ID);
table.ForeignKey(
name: "FK_T_OG_OGCONFIG_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_OG_PERSONNEL_TYPE_ENUM",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_T_OG_PERSONNEL_TYPE_ENUM", x => x.ID);
table.ForeignKey(
name: "FK_T_OG_PERSONNEL_TYPE_ENUM_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM", x => x.ID);
table.ForeignKey(
name: "FK_T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM_T_FM_ORGANIZATION_ORG_ID",
column: x => x.ORG_ID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_T_OG_OGCONFIG_ORG_ID",
table: "T_OG_OGCONFIG",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_OG_PERSONNEL_TYPE_ENUM_NAME",
table: "T_OG_PERSONNEL_TYPE_ENUM",
column: "NAME",
unique: true,
filter: "[NAME] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_T_OG_PERSONNEL_TYPE_ENUM_ORG_ID",
table: "T_OG_PERSONNEL_TYPE_ENUM",
column: "ORG_ID");
migrationBuilder.CreateIndex(
name: "IX_T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM_NAME",
table: "T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM",
column: "NAME",
unique: true,
filter: "[NAME] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM_ORG_ID",
table: "T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM",
column: "ORG_ID");
}
}
}

View File

@ -41543,123 +41543,6 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_OG_EXTERNAL_CONTACT_DETAIL");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_OGCONFIG", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<DateTime?>("EMPLOYEE_OPINION_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<DateTime?>("EVENT_GET_TIME")
.HasColumnType("datetime2");
b.Property<DateTime?>("EVENT_GET_TIME_1")
.HasColumnType("datetime2");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("REPORT_SUM_TIME")
.HasColumnType("datetime2");
b.Property<DateTime?>("SAFE_PDT_PERSONAL_SIGNED_TRIGGER_TIME")
.HasColumnType("datetime2");
b.HasKey("ID");
b.HasIndex("ORG_ID");
b.ToTable("T_OG_OGCONFIG");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_PERSONNEL_TYPE_ENUM", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<string>("NAME")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("NAME")
.IsUnique()
.HasFilter("[NAME] IS NOT NULL");
b.HasIndex("ORG_ID");
b.ToTable("T_OG_PERSONNEL_TYPE_ENUM");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_RELATED", b =>
{
b.Property<Guid>("ID")
@ -42648,61 +42531,6 @@ namespace APT.Data.Migrations.Migrations
b.ToTable("T_OG_RELATED_USER_TYPE");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("CREATER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("CREATE_TIME")
.HasColumnType("datetime2");
b.Property<int>("ENTITY_ORG_TPYE")
.HasColumnType("int");
b.Property<Guid?>("FLOW_ID")
.HasColumnType("uniqueidentifier");
b.Property<int>("FLOW_SEND_STATUS")
.HasColumnType("int");
b.Property<int>("FLOW_STATUS")
.HasColumnType("int");
b.Property<Guid?>("FORM_ID")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IS_DELETED")
.HasColumnType("bit");
b.Property<Guid?>("MODIFIER_ID")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("MODIFY_TIME")
.HasColumnType("datetime2");
b.Property<string>("NAME")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<Guid?>("ORG_ID")
.IsRequired()
.HasColumnType("uniqueidentifier");
b.HasKey("ID");
b.HasIndex("NAME")
.IsUnique()
.HasFilter("[NAME] IS NOT NULL");
b.HasIndex("ORG_ID");
b.ToTable("T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OH.T_OH_EXAM_NOTICE_OCC_HAZARD", b =>
{
b.Property<Guid>("ID")
@ -81131,28 +80959,6 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_OGCONFIG", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_PERSONNEL_TYPE_ENUM", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_RELATED", b =>
{
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department")
@ -81503,17 +81309,6 @@ namespace APT.Data.Migrations.Migrations
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OG.T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM", b =>
{
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
.WithMany()
.HasForeignKey("ORG_ID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Nav_Org");
});
modelBuilder.Entity("APT.MS.Domain.Entities.OH.T_OH_EXAM_NOTICE_OCC_HAZARD", b =>
{
b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Hazard")

File diff suppressed because it is too large Load Diff