// using System; using APT.Data.NewDb; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace APT.Data.NewDb.Migrations { [DbContext(typeof(NewDbContext))] partial class NewDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "5.0.12") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_HMI", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BD_HMI"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_TYPE") .HasColumnType("int"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM_ID") .HasColumnType("uniqueidentifier"); b.Property("ENUM_ITEM_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ENUM_ID"); b.HasIndex("ENUM_ITEM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("CODE", "ORG_ID") .IsUnique() .HasFilter("[CODE] IS NOT NULL"); b.ToTable("T_BD_PICTURE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_PATH") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PICTURE_ID"); b.ToTable("T_BD_PICTURE_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PLACE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("NAME_ACRONYM") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("PROP") .HasColumnType("int"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_BD_PLACE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_SERVER_INFO", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CPU") .HasColumnType("decimal(18,2)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IP") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MEMORY") .HasColumnType("decimal(18,2)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("STORAGE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BD_SERVER_INFO"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_SYSTEM_INFO", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CONCURRENCY") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PV") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BD_SYSTEM_INFO"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_WORD_TEMPLATE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_API") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("RET_ENTITY_TYPE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BD_WORD_TEMPLATE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_API", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESCRIBE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("METHOD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_API"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRINTER_COMPUTER_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("PRINTER_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("PRINT_NUMBER") .HasColumnType("int"); b.Property("PRINT_STATUS") .HasColumnType("int"); b.Property("PRINT_TIME") .HasColumnType("datetime2"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SOURCE_ID") .HasColumnType("uniqueidentifier"); b.Property("SOURCE_TYPE") .HasColumnType("int"); b.Property("TEMPLET_FILE_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_AUTO_PRINT_RECORD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUTO_PRINT_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARAM_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("PARAM_VALUE") .HasMaxLength(800) .HasColumnType("nvarchar(800)"); b.HasKey("ID"); b.HasIndex("AUTO_PRINT_RECORD_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_AUTO_PRINT_RECORD_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_ADD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ADDRESS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HIERARCHY") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LATITIDE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("LONGITUDE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_BASE_ADD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APP_CONS_PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("BACK_PIC_ID") .HasColumnType("uniqueidentifier"); b.Property("BOOK_TIME") .HasColumnType("int"); b.Property("CALENDAR_DAYS") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CONTINUOUS_CORRENT") .HasColumnType("int"); b.Property("CONTINUOUS_CORRENT_WARING") .HasColumnType("int"); b.Property("CORRENT_OK") .HasColumnType("int"); b.Property("CORRENT_TOTAL") .HasColumnType("int"); b.Property("COST_BENCHMARK") .HasColumnType("decimal(18,2)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_VOLTAGE_HMI_ID") .HasColumnType("uniqueidentifier"); b.Property("DOWN_PERCENT") .HasColumnType("decimal(18,2)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXCEL_TYPE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("FILE_LEN") .HasColumnType("int"); b.Property("FILE_PATH") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FILE_TYPE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HOME_HMI_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CHECK_MESSAGE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PRODUCT_CAL") .HasColumnType("bit"); b.Property("IS_USER_LOG") .HasColumnType("bit"); b.Property("KPI_CAL_TYPE") .HasColumnType("int"); b.Property("LEVEL") .HasColumnType("int"); b.Property("LOGO_ID") .HasColumnType("uniqueidentifier"); b.Property("LOWER_PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("MAP_KEY") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MESSAGE_TEMPLATE_ID") .HasColumnType("uniqueidentifier"); b.Property("METER_READ_TIME") .HasColumnType("datetime2"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PICTURE_URL") .HasColumnType("nvarchar(max)"); b.Property("PIC_LEN") .HasColumnType("int"); b.Property("PIC_PATH") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PIC_TYPE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("PUSH_API_URL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SCREEN_TITLE") .HasColumnType("nvarchar(max)"); b.Property("SCREEN_URL") .HasColumnType("nvarchar(max)"); b.Property("SLOGAN") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("STATISTICAL_TYPE") .HasColumnType("int"); b.Property("SYSTART_TIME") .HasColumnType("datetime2"); b.Property("SYS_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("T0P_PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("TEL") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("APP_CONS_PICTURE_ID"); b.HasIndex("BACK_PIC_ID"); b.HasIndex("CURRENT_VOLTAGE_HMI_ID"); b.HasIndex("HOME_HMI_ID"); b.HasIndex("LOGO_ID"); b.HasIndex("LOWER_PICTURE_ID"); b.HasIndex("MESSAGE_TEMPLATE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("T0P_PICTURE_ID"); b.ToTable("T_FM_BASE_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_ENERGY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUTH_DATE") .HasColumnType("datetime2"); b.Property("AUTH_MECHANISM") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CHARGE_TEL") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENERGY_CHARGE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ENERGY_LEADER") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ENERGY_MANAGEMENT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_ENERGY") .HasColumnType("bit"); b.Property("IS_MANAGEMENT_SYS") .HasColumnType("bit"); b.Property("LEADER_POSITION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("LEADER_TEL") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_BASE_ENERGY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_INFO", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ABB_NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CAPITAL") .HasColumnType("decimal(18,2)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CREDIT_CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FUND_ENUM_ITEM_ID") .HasColumnType("uniqueidentifier"); b.Property("GDP") .HasColumnType("decimal(18,2)"); b.Property("IS_CENTER") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LEGAL_PERSON") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLACE_ID") .HasColumnType("uniqueidentifier"); b.Property("PROP_ENUM_ITEM_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("FUND_ENUM_ITEM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PLACE_ID"); b.HasIndex("PROP_ENUM_ITEM_ID"); b.ToTable("T_FM_BASE_INFO"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HOLIDAY_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasColumnType("nvarchar(max)"); b.HasKey("ID"); b.HasIndex("HOLIDAY_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_CALENDAR"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR_CLASS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CALENDAR_ID") .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("Nav_CalendarID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CALENDAR_ID"); b.HasIndex("CLASS_ID"); b.HasIndex("Nav_CalendarID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_CALENDAR_CLASS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_CLASS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CLASS_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENDTIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STARTTIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_CLASS_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_COST_CENTER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("NAME_ACRONYM") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_FM_COST_CENTER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property< .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) _STATUS") .HasColumValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(0); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("LINE_USER") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("PERSON_ID") .HasMaxLength(100) .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.HasIndex("PERSON_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_DEPARTMENT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CALENDAR_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURR_TIME") .HasColumnType("datetime2"); b.Property("CYCLE") .HasColumnType("int"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT_TEMPLATE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_HANDOVER") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("CALENDAR_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_DEPARTMENT_CALENDAR_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_CALENDAR_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("DEPARTMENT_CALENDAR_CONFIG_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_DEPARTMENT_CALENDAR_CONFIG_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_CALENDAR_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TEAM_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_CALENDAR_CONFIG_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ID"); b.ToTable("T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SAFEUSER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_HEAD") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_DEPARTMENT_SAFEUSER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_CALENDAR_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RUN_STATUS") .HasColumnType("bit"); b.Property("SHIFT_CLASS_RUN_STATUS") .HasColumnType("bit"); b.Property("START_TIME") .HasColumnType("datetime2"); b.Property("TEAM_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("DEPARTMENT_CALENDAR_CONFIG_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ID"); b.ToTable("T_FM_DEPARTMENT_SCHEDULING"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_SCHEDULING_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_SCHEDULING_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_ID"); b.ToTable("T_FM_DEPARTMENT_SCHEDULING_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ENUM_TYPE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("CODE", "ORG_ID") .IsUnique() .HasFilter("[CODE] IS NOT NULL"); b.ToTable("T_FM_ENUM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUMS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_ENUMS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_ITEM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NAME_EN") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NUM") .HasColumnType("int"); b.Property("OFFSET") .HasColumnType("decimal(18,2)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("POINTNUM") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("STANDARD_STATUS") .HasColumnType("int"); b.Property("VALUE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ENUM_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_ENUM_ITEM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_TYPE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("CODE", "ORG_ID") .IsUnique() .HasFilter("[CODE] IS NOT NULL"); b.ToTable("T_FM_ENUM_TYPE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EQUIPMENT_INTEGRATION_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURR_TASK_START_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTE_NUM") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INTERFACE_ADDRESS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SYNCING") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MOVE_FILE_PATH") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NEXT_START_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERIODIC_TIME") .HasColumnType("int"); b.Property("PRIORITY_LEVEL") .HasColumnType("int"); b.Property("READ_FILE_PATH") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SECOND_WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.Property("SYNC_UNIT") .HasColumnType("int"); b.Property("TASK_END_TIME") .HasColumnType("datetime2"); b.Property("TASK_START_TIME") .HasColumnType("datetime2"); b.Property("WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EQUIPMENT_INTEGRATION_TASK"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_ASYNCH_TEMP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ECMSAGE") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("ECMSAGE_FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTE_RESULT_STATUS") .HasColumnType("int"); b.Property("EXT_CONN_DEST_TYPE") .HasColumnType("int"); b.Property("EXT_CONN_LOG_ID") .HasColumnType("uniqueidentifier"); b.Property("EXT_CONN_TRANS_ID") .HasColumnType("uniqueidentifier"); b.Property("EXT_PDT_ORDER_RESB_ID") .HasColumnType("uniqueidentifier"); b.Property("FIRST_EXECUTE_TIME") .HasColumnType("datetime2"); b.Property("FLAG_ECMSAGE_FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FLAG_FEILD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FUNC_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARAMS") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("SAP_BOOKING_LOG_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EXT_CONN_ASYNCH_TEMP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CONN_DEST_TYPE") .HasColumnType("int"); b.Property("CONN_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EXT_CONN_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXT_CONN_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("KEY") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("VALUE") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.HasKey("ID"); b.HasIndex("EXT_CONN_CONFIG_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EXT_CONN_CONFIG_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BILL_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ECMSAGE") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTE_RESULT_STATUS") .HasColumnType("int"); b.Property("EXT_CONN_DEST_TYPE") .HasColumnType("int"); b.Property("EXT_FUNC_TYPE") .HasColumnType("int"); b.Property("EXT_KEY") .HasColumnType("nvarchar(max)"); b.Property("EXT_KEY_ID") .HasColumnType("nvarchar(max)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("KEY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARMS") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EXT_CONN_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_TRANS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BILL_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTE_RESULT_STATUS") .HasColumnType("int"); b.Property("EXT_CONN_DEST_TYPE") .HasColumnType("int"); b.Property("EXT_FUNC_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("KEY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TRANS_ID") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_EXT_CONN_TRANS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_HOLIDAY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FRI") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MON") .HasColumnType("bit"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SAT") .HasColumnType("bit"); b.Property("SUN") .HasColumnType("bit"); b.Property("THUR") .HasColumnType("bit"); b.Property("TUES") .HasColumnType("bit"); b.Property("WED") .HasColumnType("bit"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_HOLIDAY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_HOLIDAY_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HOLIDAY_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("START_TIME") .HasColumnType("datetime2"); b.Property("WORK") .HasColumnType("bit"); b.HasKey("ID"); b.HasIndex("HOLIDAY_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_HOLIDAY_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDIT_FORM_CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME_ACRONYM") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_IMPORT_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESCRIPTION") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMPORT_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_ParentID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SHEET_INDEX") .HasColumnType("int"); b.Property("SHEET_KEY_FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("START_ROW_INDEX") .HasColumnType("int"); b.Property("TEXT") .HasColumnType("nvarchar(max)"); b.HasKey("ID"); b.HasIndex("IMPORT_CONFIG_ID"); b.HasIndex("Nav_ParentID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_IMPORT_CONFIG_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_FIELD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEST_FIELD_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ID_FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ID_TABLE_FIELD_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ID_TABLE_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("IMPORT_CONFIG_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_QUERY_FIELD_NAME") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_FEILD_TYPE") .HasColumnType("int"); b.Property("SRC_FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMPORT_CONFIG_DETAIL_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_IMPORT_CONFIG_FIELD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_INFO", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INFO") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NAME_ACRONYM") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARAMS") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_INFO"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_MESSAGE_TEMPLATE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_MESSAGE_TEMPLATE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_MONITORING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IP") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MONITORING_ADDR") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_MONITORING"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTICE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EMAIL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MESSAGE") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MESSAGE_TEMPLATE_ID") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Message_TYPE") .HasColumnType("int"); b.Property("NOTICE_STATUS") .HasColumnType("int"); b.Property("NOTICE_TYPE") .HasColumnType("int"); b.Property("Notifier_Type") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_ID") .HasColumnType("uniqueidentifier"); b.Property("RELEVANCY_ID") .HasColumnType("uniqueidentifier"); b.Property("TEL") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("TRYCOUNT") .HasColumnType("int"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_NOTICE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ECMSAGE") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTIFICATION_CLIENT_TYPE") .HasColumnType("int"); b.Property("NOTIFICATION_SHOW_TYPE") .HasColumnType("int"); b.Property("NOTIFICATION_TYPE") .HasColumnType("int"); b.Property("ORDER_STATUS") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("TITLE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_NOTIFICATION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION_ACCEPTED", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTIFICATION_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("NOTIFICATION_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_NOTIFICATION_ACCEPTED"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION_PERMIT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTIFICATION_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERMIT_KEY_ID") .HasColumnType("uniqueidentifier"); b.Property("PERMIT_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("NOTIFICATION_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_NOTIFICATION_PERMIT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NAME_ACRONYM") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_PANEL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL_BELONG_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PANEL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PANEL_ID"); b.ToTable("T_FM_PANEL_BELONG_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL_INFO", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INFO_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PANEL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("INFO_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PANEL_ID"); b.ToTable("T_FM_PANEL_INFO"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("EMAIL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_QUIT") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("NAME_ACRONYM") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("POST_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SEX") .HasMaxLength(20) .HasColumnType("int"); b.Property("TEL") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("POST_ID"); b.ToTable("T_FM_PERSON"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PLAN_PARAM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_PLAN_PARAM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PRINTER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME_ACRONYM") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRINTER_COMPUTER_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("PRINTER_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("TEMPLET_FILE_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_PRINTER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PRINTER_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRINTER_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SERIAL_NUM") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("STATUS") .HasColumnType("int"); b.Property("TYPE") .HasColumnType("int"); b.Property("WEIGHT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_PRINTER_TASK"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CHECK_MESSAGE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLATFORM_TYPE") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ROLE_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_DEPARTMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("ROLE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("ROLE_ID"); b.ToTable("T_FM_ROLE_DEPARTMENT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_ROLE_GROUP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP_BELONG_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("ROLE_GROUP_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("ROLE_GROUP_ID"); b.ToTable("T_FM_ROLE_GROUP_BELONG_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PERMISSION") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERMISSION_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ROLE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERMISSION_FORM_ID"); b.HasIndex("ROLE_ID"); b.ToTable("T_FM_ROLE_MENU_PERM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM_BTN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BTN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("ROLE_MENU_PERMISSION_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BTN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("ROLE_MENU_PERMISSION_ID"); b.ToTable("T_FM_ROLE_MENU_PERM_BTN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM_COL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("ROLE_MENU_PERMISSION_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("COLUMN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("ROLE_MENU_PERMISSION_ID"); b.ToTable("T_FM_ROLE_MENU_PERM_COL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_ATTR", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESC") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLAN_PARAM_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PLAN_PARAM_ID"); b.ToTable("T_FM_STAGE_ATTR"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_BELONG_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PERMISSION") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_BelongRoleID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_BelongRoleID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_STAGE_BELONG_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_DYNAMIC", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ACTUAL_VAL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLAN_PARAM_ID") .HasColumnType("uniqueidentifier"); b.Property("STAGE_PLAN_ID") .HasColumnType("uniqueidentifier"); b.Property("VAL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PLAN_PARAM_ID"); b.ToTable("T_FM_STAGE_DYNAMIC"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_PLAN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLAN_ID") .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.Property("WORKSTAGE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_STAGE_PLAN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_SYNC_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_COUNT") .HasColumnType("int"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SUCCESS") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_OrgID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.Property("TABLE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_SYNC_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_SYNC_LOG_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ADD") .HasColumnType("int"); b.Property("ADD_ERR") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DELETE") .HasColumnType("int"); b.Property("DELETE_ERR") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SUCCESS") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SNC_LOG_ID") .HasColumnType("uniqueidentifier"); b.Property("TIME") .HasColumnType("datetime2"); b.Property("UPDATE") .HasColumnType("int"); b.Property("UPDATE_ERR") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_SYNC_LOG_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_SYNC_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURR_TASK_START_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTE_NUM") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INTERFACE_ADDRESS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SYNCING") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NEXT_START_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERIODIC_TIME") .HasColumnType("int"); b.Property("PRIORITY_LEVEL") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("SYNC_PARAM") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("SYNC_UNIT") .HasColumnType("int"); b.Property("TASK_END_TIME") .HasColumnType("datetime2"); b.Property("TASK_START_TIME") .HasColumnType("datetime2"); b.Property("UPDATE_SUCCES_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_SYNC_TASK"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ABB_NAME") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("CHARGE_PERSON_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHARGE_PERSON_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_TEAM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_TEAM_PERSON", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_ID") .HasColumnType("uniqueidentifier"); b.Property("TEAM_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_ID"); b.HasIndex("TEAM_ID"); b.ToTable("T_FM_TEAM_PERSON"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_UNIT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("POINT_LEN") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ROUND_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_UNIT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPARTURETIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENTRYTIME") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ID_CARD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PASSWORD") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("PERSON_ID") .HasColumnType("uniqueidentifier"); b.Property("PHONE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PRINTER_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("SEX") .HasColumnType("int"); b.Property("WORKINGYEAR") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_ID") .IsUnique() .HasFilter("[PERSON_ID] IS NOT NULL"); b.ToTable("T_FM_USER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_BELONG_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_ROLE_GROUP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_GROUP_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_GROUP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_BELONG_ROLE_GROUP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_USER_GROUP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_USER_GROUP_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_USER_GROUP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_BELONG_USER_GROUP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_UserID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_UserID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_USER_CUSTOM_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_COL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_CUSTOM_CONFIG_H_TAB_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("COLUMN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_CUSTOM_CONFIG_H_TAB_ID"); b.ToTable("T_FM_USER_CUSTOM_CONFIG_H_COL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_TAB", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_CUSTOM_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.HasIndex("USER_CUSTOM_CONFIG_ID"); b.ToTable("T_FM_USER_CUSTOM_CONFIG_H_TAB"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_CUSTOM_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_EDIT_ID"); b.HasIndex("USER_CUSTOM_CONFIG_ID"); b.ToTable("T_FM_USER_C_C_EDIT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT_COL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDIT_COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_C_C_EDIT_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDIT_COLUMN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_C_C_EDIT_ID"); b.ToTable("T_FM_USER_C_C_EDIT_COL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT_H_COL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDIT_COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_C_C_EDIT_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDIT_COLUMN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_C_C_EDIT_ID"); b.ToTable("T_FM_USER_C_C_EDIT_H_COL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("TITLE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("USER_CUSTOM_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.HasIndex("USER_CUSTOM_CONFIG_ID"); b.ToTable("T_FM_USER_C_C_QUERY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_FIELD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CASE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_TYPE") .HasColumnType("int"); b.Property("DATA_VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FEILD_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DEFAULT_QUERY") .HasColumnType("bit"); b.Property("IS_DEFAULT_SHOW") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_REQUIRE") .HasColumnType("bit"); b.Property("IS_SYS_PARAM") .HasColumnType("bit"); b.Property("IS_SYS_QUERY_FIELD") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("OP_DEFAULT") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUERY_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("USER_C_C_QUERY_GROUP_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_C_C_QUERY_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_C_C_QUERY_GROUP_ID"); b.HasIndex("USER_C_C_QUERY_ID"); b.ToTable("T_FM_USER_C_C_QUERY_FIELD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_GROUP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DISPLAY") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("RELATION_TYPE") .HasColumnType("int"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("TITLE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("USER_C_C_QUERY_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.HasIndex("USER_C_C_QUERY_ID"); b.ToTable("T_FM_USER_C_C_QUERY_GROUP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_SIZE") .HasColumnType("int"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_CUSTOM_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.HasIndex("USER_CUSTOM_CONFIG_ID"); b.ToTable("T_FM_USER_C_C_TABLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE_COL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_C_C_TABLE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("COLUMN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_C_C_TABLE_ID"); b.ToTable("T_FM_USER_C_C_TABLE_COL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_DEPARTMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_DEPARTMENT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasColumnType("nvarchar(max)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_USER_GROUP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_ROLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_GROUP_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_GROUP_ID"); b.ToTable("T_FM_USER_GROUP_BELONG_ROLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_R_G", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_ROLE_GROUP_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_GROUP_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_ROLE_GROUP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_GROUP_ID"); b.ToTable("T_FM_USER_GROUP_BELONG_R_G"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_U_G", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BELONG_USER_GROUP_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_GROUP_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("BELONG_USER_GROUP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_GROUP_ID"); b.ToTable("T_FM_USER_GROUP_BELONG_U_G"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_PHOTO_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_PHOTO_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_USER_POST"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_SIGN_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FM_USER_SIGN_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_TEST", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_POST_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_POST_ID"); b.ToTable("T_FM_USER_TEST"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_PF_SYS_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BROWSER_NAME") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXT_DATA") .HasColumnType("nvarchar(max)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HOST_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LOG_DATA") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("LOG_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("LOG_TIME") .HasColumnType("datetime2"); b.Property("LOG_TITLE") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("LOG_TYPE") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("LOG_FORM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_PF_SYS_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.LG.T_LG_OPRATE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BTN_CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("BTN_NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FORM_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPRATE_TYPE") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_LG_OPRATE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.NW.T_NW_ENTERPRISE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_NW_ENTERPRISE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.NW.T_NW_ROLE_DATA_PERM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTERPRISE_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PREM_ENTERPRISE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_NW_ROLE_DATA_PERM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.NW.T_NW_ROLE_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTERPRISE_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTERPRISE_MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_NW_ROLE_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("VERSION_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("VERSION_ID"); b.ToTable("T_OP_BILLING_RULE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE_VERSION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLAT_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("FLAT_SERVICE_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PEAK_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("PEAK_SERVICE_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("RULE_ID") .HasColumnType("uniqueidentifier"); b.Property("SHARP_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("SHARP_SERVICE_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("VALLEY_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("VALLEY_SERVICE_CHARGE") .HasColumnType("decimal(18,2)"); b.Property("VERSION") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RULE_ID"); b.ToTable("T_OP_BILLING_RULE_VERSION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_CHARGE_TIME_SET", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HOUR") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_CHARGE_TIME_SET"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_CLIENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ADDR") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("AVATAURL") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EMAIL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ID_CARD") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NICK_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TEL") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_CLIENT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_CLINET_OPENID", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CLIENT_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPEN_ID") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CLIENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_CLINET_OPENID"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_COMMON_QUESTION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ANSWER") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUESTION") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_COMMON_QUESTION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_FILE_FIRMWARE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIRMWARE_CONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FIRMWARE_DATA") .HasColumnType("varbinary(max)"); b.Property("FIRMWARE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FIRMWARE_PATH") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FIRMWARE_TYPE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FIRMWARE_VERSION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_FILE_FIRMWARE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_MEMBER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("OPENID") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PHONE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("RECHARGE_CARD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECHARGE_CARD_ID"); b.ToTable("T_OP_MEMBER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ICON") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MENU_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("MENU_FORM_PARAMS") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("MENU_LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NAME_ACRONYM") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("MENU_FORM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_OP_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_NOTICE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_TITLE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_NOTICE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_NOTICE_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TEXT") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("NOTICE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_NOTICE_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_PEAK_VALLEY_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_PEAK_VALLEY_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_CARD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BALANCE") .HasColumnType("decimal(18,2)"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REAMRK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("RFID_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RFID_ID"); b.ToTable("T_OP_RECHARGE_CARD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_ORDER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AMOUNT") .HasColumnType("decimal(18,2)"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORDER_STATUS") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECHARGE_CARD_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECHARGE_CARD_ID"); b.ToTable("T_OP_RECHARGE_ORDER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_SETTING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AMOUNT") .HasColumnType("decimal(18,2)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_RECHARGE_SETTING"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RFID_CARD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFICATION") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REAMRK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("RFID") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_RFID_CARD"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_ROLE_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TENANT_ID") .HasColumnType("uniqueidentifier"); b.Property("TENANT_MENU_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_ROLE_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CERTPASSWORD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CERTPATH") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DB_CONN_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXPIRATION_TIME") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_TEMPLATE") .HasColumnType("bit"); b.Property("MCH_ID") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PROJECT_TYPE") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TEMPLATE_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("WXPAYKEY") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("DB_CONN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEMPLATE_ID"); b.ToTable("T_OP_TENANT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_DB_CONN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DB_CONN") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_TENANT_DB_CONN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_DOMAIN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DOMAIN_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TENANT_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TENANT_ID"); b.ToTable("T_OP_TENANT_DOMAIN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_EXPIRATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DURATION") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXPIRATION_TIME") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LAST_TIME") .HasColumnType("datetime2"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TENANT_ID") .HasColumnType("uniqueidentifier"); b.Property("UNIT") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TENANT_ID"); b.ToTable("T_OP_TENANT_EXPIRATION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PASSWORD") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("PHONE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("REMARK") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_USER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_VERSION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OLD_VERSION_NO") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("TEMPLATE_ID") .HasColumnType("uniqueidentifier"); b.Property("UPDATE_SQL") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("VERSION_NO") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("VERSION_ZH") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEMPLATE_ID"); b.ToTable("T_OP_VERSION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_VERSION_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MENU_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("VERSION_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_VERSION_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_VERSION_TENANT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TENANT_ID") .HasColumnType("uniqueidentifier"); b.Property("VERSION_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_OP_VERSION_TENANT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.PF.T_PF_COMPLAINT_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVE_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("COMPLAINT_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("APPROVE_DETAIL_ID"); b.HasIndex("COMPLAINT_USER_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_COMPLAINT_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.PF.T_PF_FORM_RELATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FORM_RELATION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.PF.T_PF_VERSION_MANAGE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BRANCH") .HasColumnType("int"); b.Property("CONTENT") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("GRAMMAR") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LAST_VERSION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("VERSION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("VERSION_NO") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("VERSION_TYPE") .HasColumnType("int"); b.Property("VERSION_ZH") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_VERSION_MANAGE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_CODE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BAD_GRADE_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("BAD_GRADE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_PF_DEFECT_CODE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_GRADE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SEVERITY") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_DEFECT_GRADE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_ECM_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_ADDRESS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESC") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("ECMSAGE") .HasColumnType("nvarchar(max)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOB_CODE") .HasColumnType("nvarchar(max)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_ECM_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_FM_NOTIFICATION_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FORM_TYPE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_STATUS") .HasColumnType("int"); b.Property("NOTICE_TITLE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NOTICE_TYPE") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SOURCE_DATA_ID") .HasColumnType("uniqueidentifier"); b.Property("SOURCE_FORMCODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("TASK_DT") .HasColumnType("datetime2"); b.Property("TASK_ENDDT") .HasColumnType("datetime2"); b.Property("TASK_STARTDT") .HasColumnType("datetime2"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_NOTIFICATION_TASK"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPMENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HAS_CHILDREN") .HasColumnType("bit"); b.Property("ICON") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IMG") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MENU_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("MENU_FORM_PARAMS") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MENU_LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("MENU_FORM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.HasIndex("PICTURE_ID"); b.ToTable("T_PF_APPMENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVE_CODE") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("APPROVE_STATUS") .HasColumnType("int"); b.Property("CALLBACK_INTERFACE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_APPROVE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVE_ID") .HasColumnType("uniqueidentifier"); b.Property("APPROVE_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("CONTEXT") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CURRENT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NODE_APPROVE_STATUS") .HasColumnType("int"); b.Property("NODE_APPROVE_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasMaxLength(10) .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("APPROVE_ID"); b.HasIndex("APPROVE_USER_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_APPROVE_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE_TEMP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CALLBACK_INTERFACE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_CODE") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_APPROVE_TEMP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE_TEMP_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEFAULT_APPROVE_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NUM") .HasMaxLength(10) .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("APPROVE_ID"); b.HasIndex("DEFAULT_APPROVE_USER_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_APPROVE_TEMP_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BTN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("BTN_CONDITION") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("BTN_FUN_TYPE") .HasColumnType("int"); b.Property("BTN_PAGE_TYPE") .HasColumnType("int"); b.Property("BTN_TYPE") .HasColumnType("int"); b.Property("CLICK_EVENT") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CSS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CUSTOM_PARAMS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ICON") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("INPUT_NAV_FIELD") .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.Property("INPUT_SAVE_FIELD") .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.Property("IS_COMFIRM") .HasColumnType("bit"); b.Property("IS_DEFAULT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_RULE") .HasColumnType("bit"); b.Property("IS_SAME_LEVEL") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_CUSTOM_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("SAVE_CLEAR_TYPE") .HasColumnType("int"); b.Property("SAVE_CLOSE_TYPE") .HasColumnType("int"); b.Property("SELECT_SHOW") .HasColumnType("bit"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("WORD_TEMPLATE_CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.ToTable("T_PF_BTN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HAS_CHILDREN") .HasColumnType("bit"); b.Property("ICON") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IMG") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MENU_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("MENU_FORM_PARAMS") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MENU_LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("MENU_FORM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_PF_CLIENT_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_SCOPES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_CHANNEL_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCOPE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DATA_CHANNEL_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SCOPE_ID"); b.ToTable("T_PF_CLIENT_SCOPES"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CODE_RULE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE_PREFIX") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CODE_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_DATA") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_FLOW") .HasColumnType("bit"); b.Property("IS_IGNORE_DATE") .HasColumnType("bit"); b.Property("IS_ORG_CODE") .HasColumnType("bit"); b.Property("IS_TENANT_CODE") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QTY") .HasColumnType("int"); b.Property("SERIAL_NUM_LEN") .HasColumnType("int"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TAKE_RETAIN_MIN") .HasColumnType("int"); b.Property("VERSION") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_CODE_RULE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CODE_RULE_RUN_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_COMPLETE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_CODE_RULE_RUN_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CODE_RULE_SERIAL_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATE_VALUE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SERIAL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("STATUS") .HasColumnType("int"); b.Property("TAKE_TIME") .HasColumnType("datetime2"); b.Property("USE_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_CODE_RULE_SERIAL_LOG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_COLUMN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CONTROL_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_PARAMS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("DATA_TYPE") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FOOTER_SUM_TYPE") .HasColumnType("int"); b.Property("FORMAT") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INPUT_DATA_API") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("INPUT_DATA_LEVEL") .HasColumnType("int"); b.Property("INPUT_FILTER_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("INPUT_ID_FIELD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("INPUT_LABEL_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_NAV_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SAVE_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SHOW_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_SORT_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_SORT_ORDER") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DEFAULT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_ONLY_CHECK_LEAF") .HasColumnType("bit"); b.Property("IS_RULE") .HasColumnType("bit"); b.Property("IS_SHOW_SUM") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MAX_LEN") .HasColumnType("int"); b.Property("MERGE_CELLS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("MIN_LEN") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NO_SORT") .HasColumnType("bit"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_PANEL_ID") .HasColumnType("uniqueidentifier"); b.Property("SHOW_FORM_CODE") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("SHOW_ID_FIELD") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("VALIDATA_TYPE") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.HasIndex("PAGE_TABLE_PANEL_ID"); b.ToTable("T_PF_COLUMN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_COLUMN_FILTER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("COLUMN_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_COLUMN_FILTER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_DATA_CHANNEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APP_ID") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_FREQUENCY_ID") .HasColumnType("uniqueidentifier"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LIFE_TIME") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SECURITY_KEY") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TENANT_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DATA_FREQUENCY_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TENANT_ID"); b.ToTable("T_PF_DATA_CHANNEL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_DATA_FREQUENCY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FREQUENCY_TYPE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STORE_FRE") .HasColumnType("decimal(18,2)"); b.Property("UPDATE_FRE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("CODE", "ORG_ID") .IsUnique() .HasFilter("[CODE] IS NOT NULL"); b.HasIndex("NAME", "ORG_ID") .IsUnique() .HasFilter("[NAME] IS NOT NULL"); b.ToTable("T_PF_DATA_FREQUENCY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CASE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE_RULE_TYPE") .HasColumnType("int"); b.Property("CONTROL_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEFAULT_VALUE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("EDITABLE") .HasColumnType("bit"); b.Property("EDIT_FORM_CODE") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("EDIT_FORM_FILTER") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("EDIT_FORM_FILTER_VALUE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORMAT") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INPUT_DATA_API") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("INPUT_DATA_LEVEL") .HasColumnType("int"); b.Property("INPUT_FILTER_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("INPUT_ID_FIELD") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("INPUT_KEEP_VALUE_BY_NO_SRC") .HasColumnType("bit"); b.Property("INPUT_LABEL_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_NAV_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SAVE_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SHOW_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SORT_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SORT_ORDER") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("IS_CAN_BATCH_EDIT") .HasColumnType("bit"); b.Property("IS_COPY") .HasColumnType("bit"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DEFAULT") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_IGNORE_TENANT") .HasColumnType("bit"); b.Property("IS_ONLY_CHECK_LEAF") .HasColumnType("bit"); b.Property("IS_RULE") .HasColumnType("bit"); b.Property("IS_TABLE_COLUMN") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MAX_LEN") .HasColumnType("int"); b.Property("MIN_LEN") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_PANEL_ID") .HasColumnType("uniqueidentifier"); b.Property("PERMIT_EDITABLE") .HasColumnType("bit"); b.Property("PROMPT_INFO") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("QUERY_FORMAT") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("REMARK") .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("REQUIRED") .HasColumnType("bit"); b.Property("SELECTD_LABEL_FIELD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SHOW_FORM_CODE") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("SHOW_ID_FIELD") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TYPE_NAME") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("VALIDATA_TYPE") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("VERIFY_ERROR_INFO") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("VERIFY_EXPRESS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("VERIFY_MSG") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("VERIFY_TYPE") .HasColumnType("int"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_EDIT_ID"); b.HasIndex("PAGE_EDIT_PANEL_ID"); b.ToTable("T_PF_EDIT_COLUMN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEST_NAV") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EDIT_COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_NAV") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("EDIT_COLUMN_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_EDIT_COLUMN_FILL_MAP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP_D", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEST_FIELD_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("EDIT_COLUMN_FILL_MAP_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SRC_FIELD_NAME") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDIT_COLUMN_FILL_MAP_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_EDIT_COLUMN_FILL_MAP_D"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILTER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDIT_COLUMN_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SYS_PARAM") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("EDIT_COLUMN_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_EDIT_COLUMN_FILTER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_DATA") .HasColumnType("varbinary(max)"); b.Property("FILE_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FILE_PATH") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FILE_TYPE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_TEMPORARY_FILE") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActivityEditable") .HasColumnType("int"); b.Property("ActivityId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ActivityName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ActivityType") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("Code") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CreateDate") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CreateUserName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CustomName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("Description") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EntityFlowStatus") .HasColumnType("int"); b.Property("EntityId") .HasColumnType("uniqueidentifier"); b.Property("EntityType") .HasColumnType("int"); b.Property("EntityTypeFullName") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FrmId") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("InstanceSchemeId") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MakerList") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("OrderStatus") .HasColumnType("int"); b.Property("PreviousId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SchemeContent") .HasColumnType("nvarchar(max)"); b.HasKey("ID"); b.HasIndex("FrmId"); b.HasIndex("InstanceSchemeId"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FLOW_INSTANCE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE_OPER_HIS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("Content") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CreateDate") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CreateUserName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("InstanceId") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("InstanceId"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FLOW_INSTANCE_OPER_HIS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE_TRANS_HIS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CreateDate") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CreateUserName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FromNodeId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FromNodeName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FromNodeType") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("InstanceId") .HasColumnType("uniqueidentifier"); b.Property("IsFinish") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("ToNodeId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ToNodeName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ToNodeType") .HasColumnType("int"); b.Property("TransitionSate") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("InstanceId"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FLOW_INSTANCE_TRANS_HIS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_SCHEME", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActiveAutoSend") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CreateDate") .HasColumnType("datetime2"); b.Property("CreateUserId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CreateUserName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Description") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("Disabled") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FrmId") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ModifyDate") .HasColumnType("datetime2"); b.Property("ModifyUserId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ModifyUserName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PermitFrmId") .HasColumnType("uniqueidentifier"); b.Property("SchemeCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SchemeContent") .HasColumnType("nvarchar(max)"); b.Property("SchemeName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SortCode") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("FrmId"); b.HasIndex("ORG_ID"); b.HasIndex("PermitFrmId"); b.ToTable("T_PF_FLOW_SCHEME"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUTH_ORG_CODES") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_PARAMS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FORM_TYPE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_IGNORE_PERMISSION") .HasColumnType("bit"); b.Property("JS_FILES") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MODULE_TYPE") .HasColumnType("int"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NAME_ACRONYM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLATFORM_CATEGORY") .HasColumnType("int"); b.Property("PLATFORM_TYPE") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("URI") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FORM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("VERSION") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FORM_CONFIG_VERSION"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION_D", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_CONFIG_VERSION_ID") .HasColumnType("uniqueidentifier"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMOVE_COOKIE_KEY") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("FORM_CONFIG_VERSION_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_FORM_CONFIG_VERSION_D"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_CHART", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_FORM_HOME_CHART"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_HMI", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HMI_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("HMI_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_FORM_HOME_HMI"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_RANKING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_FORM_HOME_RANKING"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_STATISTIC", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_FORM_HOME_STATISTIC"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_QUERY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FORM_QUERY_SHOW_TYPE") .HasColumnType("int"); b.Property("INPUT_FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_REMEMBER") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("SHARE_KEY") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_FORM_QUERY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("FILE_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FILE_TYPE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_IMG_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_IMG_FILE_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("FILE_ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_IMG_FILE_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_LABEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_NAME") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("LANGUAGE") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TABEL_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_LABEL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MENU", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ICON") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_INIT_REQ") .HasColumnType("bit"); b.Property("IS_INIT_SHOW") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("IS_PERMISSION_MENU") .HasColumnType("bit"); b.Property("IS_PERMISSION_SUB") .HasColumnType("int"); b.Property("IS_RESIDENT") .HasColumnType("bit"); b.Property("MENU_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("MENU_FORM_PARAMS") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NAME_ACRONYM") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("PICTURE_ID") .HasColumnType("uniqueidentifier"); b.Property("PLATFORM_CATEGORY") .HasColumnType("int"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("MENU_FORM_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.HasIndex("PICTURE_ID"); b.ToTable("T_PF_MENU"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MQTT_CONFIG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CMD_LEN") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MQTT_TYPE") .HasColumnType("int"); b.Property("MQ_IP") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("MQ_PORT") .HasColumnType("int"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_MQTT_CONFIG"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MQTT_CONFIG_THEME", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MQTT_CONFIG_ID") .HasColumnType("uniqueidentifier"); b.Property("NAME") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("THEME_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("MQTT_CONFIG_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_MQTT_CONFIG_THEME"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CHART_TYPE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IGNORE_ORG_RULE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SHOW_DATA") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MIN_WIDTH") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("SPAN") .HasColumnType("int"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_PAGE_CHART"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART_PARAM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SYS_PARAM") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_CHART_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_CHART_ID"); b.ToTable("T_PF_PAGE_CHART_PARAM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CUSTOM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("COMPONENT_NAME") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_API") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CUSTOM_PARAMS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_PAGE_CUSTOM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("BATCH_QUERY_API") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("BATCH_UPDATE_API") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CHILD_SET_FIELD") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CODE_FIELD_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE_RULE_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_PARAMS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("EDIT_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EDIT_PAGE_ENTITY_ORG_TYPE") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HEIGTH") .HasColumnType("int"); b.Property("IS_CONTAINS_NAV") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DETAIL_REQUIRED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("IS_PERMIT_ADD_ROW") .HasColumnType("bit"); b.Property("IS_PERMIT_DEL_ROW") .HasColumnType("bit"); b.Property("IS_SUB_ADD_BTN_DISABLED") .HasColumnType("bit"); b.Property("IS_SUB_DELETE_BTN_DISABLED") .HasColumnType("bit"); b.Property("LABEL_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAV_PROPERTY") .HasColumnType("nvarchar(max)"); b.Property("NAV_ROW_CLASS_FILTER") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("PARAM_SCHEME_ID") .HasColumnType("uniqueidentifier"); b.Property("PARENT_COPY_FIELD") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("QUERY_API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("QUERY_SEND_TYPE") .HasColumnType("int"); b.Property("RELATION_FIELD") .HasColumnType("nvarchar(max)"); b.Property("SEND_TYPE") .HasColumnType("int"); b.Property("SHOW_CHECK") .HasColumnType("bit"); b.Property("SORT_FIELDS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SORT_ORDERS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("SUB_TABLE_CONDITION") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.HasIndex("PARAM_SCHEME_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_PF_PAGE_EDIT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT_PANEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT_EXPAND") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DISPLAY") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_EDIT_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_EDIT_ID"); b.ToTable("T_PF_PAGE_EDIT_PANEL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("API_URL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("BATCH_DEL_API_URL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CHECK_TYPE") .HasColumnType("int"); b.Property("CLASS_FIELD") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CLASS_FUNC_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_PARAMS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("DATA_TABLE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("DEL_API_URL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FOOTER_SUM_TYPE") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HEIGTH") .HasColumnType("int"); b.Property("IGNORE_ORG_RULE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("IS_SHOW_CARD") .HasColumnType("bit"); b.Property("IS_SHOW_FOOTER") .HasColumnType("bit"); b.Property("IS_SHOW_ROW_NO") .HasColumnType("bit"); b.Property("LABEL_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MAX_SELECT") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NO_SELECT_FIELD") .HasColumnType("bit"); b.Property("NUM") .HasColumnType("int"); b.Property("ORDER") .HasColumnType("int"); b.Property("ORDERS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("PARAM_SCHEME_ID") .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("PARENT_RELATION_FIELD") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("PIC_CODE_FIELD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("POSITION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("RELATION_FIELD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SEND_TYPE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SHOW_CHECK") .HasColumnType("bit"); b.Property("SORT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SORTS") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_CONDITION") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TABLE_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("TITLE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.HasIndex("PARAM_SCHEME_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_PF_PAGE_TABLE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE_PANEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT_EXPAND") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DISPLAY") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.ToTable("T_PF_PAGE_TABLE_PANEL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TREE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BATCH_DEL_API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("BATCH_DEL_SEND_TYPE") .HasColumnType("int"); b.Property("CAN_ADD_NODE") .HasColumnType("bit"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CUSTOM_PARAMS") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILTER_ORG_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IGNORE_ORG_RULE") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABEL_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MULTI_CHECK") .HasColumnType("bit"); b.Property("MULTI_CHECK_COUNT") .HasColumnType("int"); b.Property("NUM") .HasColumnType("int"); b.Property("ORDER") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("QUERY_API_URL") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("QUERY_SEND_TYPE") .HasColumnType("int"); b.Property("RELATION_FIELD") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SELECT_CONDITION") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("SHOW_MODEL") .HasColumnType("int"); b.Property("SORT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TREE_SELECTED_PARAM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.ToTable("T_PF_PAGE_TREE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PARAM_ITEM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CASE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CODE_RULE_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEFAULT_VALUE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EDITABLE") .HasColumnType("bit"); b.Property("EDIT_CONTROL_TYPE") .HasColumnType("int"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SHOW") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME_ACRONYM") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PROMPT_INFO") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("REQUIRED") .HasColumnType("bit"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("TABLE_CONTROL_TYPE") .HasColumnType("int"); b.Property("WIDTH") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_PARAM_ITEM"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PANEL_SHOW") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NAME_ACRONYM") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(400) .HasColumnType("nvarchar(400)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_PARAM_SCHEME"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDITABLE") .HasColumnType("bit"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SHOW") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARAM_ITEM_ID") .HasColumnType("uniqueidentifier"); b.Property("PARAM_SCHEME_ID") .HasColumnType("uniqueidentifier"); b.Property("REQUIRED") .HasColumnType("bit"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARAM_ITEM_ID"); b.HasIndex("PARAM_SCHEME_ID"); b.ToTable("T_PF_PARAM_SCHEME_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasMaxLength(50) .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("PICTURE_ID") .HasMaxLength(50) .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.HasIndex("PICTURE_ID"); b.ToTable("T_PF_PIC_FILTER"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATE") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PIC_FILTER_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PIC_FILTER_ID"); b.ToTable("T_PF_PIC_FILTER_DETAIL"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUERY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CASE") .HasColumnType("int"); b.Property("CHECK_STRICTLY") .HasColumnType("bit"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_TYPE") .HasColumnType("int"); b.Property("DATA_VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INPUT_DATA_API") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_DATA_LEVEL") .HasColumnType("int"); b.Property("INPUT_FILTER_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_ID_FIELD") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("INPUT_LABEL_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_NAV_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SAVE_FIELD") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.Property("INPUT_SHOW_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_SORT_FIELD") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("INPUT_SORT_ORDER") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DEFAULT_QUERY") .HasColumnType("bit"); b.Property("IS_DEFAULT_SHOW") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_ONLY_CHECK_LEAF") .HasColumnType("bit"); b.Property("IS_REQUIRE") .HasColumnType("bit"); b.Property("IS_SYS_PARAM") .HasColumnType("bit"); b.Property("IS_TITLE") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MULTIPLE_CHOICE") .HasColumnType("bit"); b.Property("NUM") .HasColumnType("int"); b.Property("OP_DEFAULT") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("PAGE_FORM_QUERY_ID") .HasColumnType("uniqueidentifier"); b.Property("QUERY_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SELECT_CONDITION") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_FORM_ID"); b.HasIndex("PAGE_FORM_QUERY_ID"); b.ToTable("T_PF_QUERY"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUERY_APP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA_TYPE") .HasColumnType("int"); b.Property("DATA_VALUE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DEFAULT_QUERY") .HasColumnType("bit"); b.Property("IS_DEFAULT_SHOW") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABEL") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("OP_DEFAULT") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("QUERY_NAME") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_QUERY_APP"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUESTION_FEEDBACK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAPARTMENT_NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUESTION_DESCRIPTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("QUESTION_TYPE") .HasColumnType("int"); b.Property("USER_NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_QUESTION_FEEDBACK"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_SCOPES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_SCOPES"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_TABLE_PARAMS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FIELD_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_CUSTOM") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SYS_PARAM") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_TABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TABLE_ID"); b.ToTable("T_PF_TABLE_PARAMS"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_TREE_COLUMN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENUM") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FIELD_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORMAT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INPUT_DATA_LEVEL") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PAGE_TREE_ID") .HasColumnType("uniqueidentifier"); b.Property("QUERY_FORMAT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SRC_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PAGE_TREE_ID"); b.ToTable("T_PF_TREE_COLUMN"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_VERSION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("VERSION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_PF_VERSION"); }); modelBuilder.Entity("APT.Infrastructure.Core.DataUpdateRecord", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DataID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EntityFullName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EntityName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TargetDepartmentID") .HasColumnType("uniqueidentifier"); b.Property("UpdateFiled") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("UpdateType") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("DataUpdateRecord"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_FM_ORGANIZATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasColumnType("nvarchar(max)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESC") .HasColumnType("nvarchar(max)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasColumnType("nvarchar(max)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("TENANT_CODE") .HasColumnType("nvarchar(max)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_FM_ORGANIZATION"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_PF_CODE_RULE_SERIAL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE_TYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATE_VALUE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RELEASE_TIME") .HasColumnType("datetime2"); b.Property("ROW_VERSION") .HasColumnType("int"); b.Property("SERIAL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("STATUS") .HasColumnType("int"); b.Property("TAKE_TIME") .HasColumnType("datetime2"); b.Property("USE_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("ORG_ID", "CODE_TYPE", "SERIAL"); b.HasIndex("ORG_ID", "CODE_TYPE", "DATE_VALUE", "SERIAL"); b.HasIndex("ORG_ID", "CODE_TYPE", "STATUS", "NUM"); b.HasIndex("ORG_ID", "CODE_TYPE", "DATE_VALUE", "STATUS", "NUM"); b.ToTable("T_PF_CODE_RULE_SERIAL"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_PF_PARAM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(60) .HasColumnType("nvarchar(60)"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ID") .HasColumnType("uniqueidentifier"); b.Property("VALUE") .HasMaxLength(600) .HasColumnType("nvarchar(600)"); b.HasKey("ID"); b.ToTable("T_PF_PARAM"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PROOF") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("QUESTION_LEVEL") .HasColumnType("int"); b.Property("SERIOUS_RISK") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CHECK_PROJECT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_CONTENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_CONTENT_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_CATEGORY_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_CheckProjectCategoryID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_CONTENT_ID"); b.HasIndex("CHECK_TYPE_ID"); b.HasIndex("Nav_CheckProjectCategoryID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_CONTENT_CHECK_TYPE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE_LEVEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_CONTENT_CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("T_BS_CHECK_TYPE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_CONTENT_CHECK_TYPE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("T_BS_CHECK_TYPE_LEVEL_ID"); b.ToTable("T_BS_CHECK_CONTENT_CHECK_TYPE_LEVEL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_HM_RISK_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_CONTENT_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HM_RISK_AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_CONTENT_ID"); b.HasIndex("HM_RISK_AREA_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_CONTENT_HM_RISK_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_QUESTION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_CONTENT_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_QUESTION_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_CONTENT_ID"); b.HasIndex("CHECK_QUESTION_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_CONTENT_QUESTION"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_MAIN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECKCONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CHECKOBJECT") .HasColumnType("int"); b.Property("CHECKPROOF") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CHECK_PROJECT_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_PROJECT_CATEGORY_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_QUESTION_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUESTION_LEVEL") .HasColumnType("int"); b.Property("RISK_AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("SERIOUS_RISK") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CHECK_PROJECT_ID"); b.HasIndex("CHECK_PROJECT_PROJECT_CATEGORY_ID"); b.HasIndex("CHECK_QUESTION_ID"); b.HasIndex("CHECK_TYPE_ID"); b.HasIndex("CHECK_TYPE_LEVEL_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_AREA_ID"); b.ToTable("T_BS_CHECK_MAIN"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_PROJECT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_CATEGORY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_PROJECT_CATEGORY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_PROJECT_CATEGORY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_CATEGORY_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_PROJECT_CATEGORY_ID"); b.HasIndex("CHECK_PROJECT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_PROJECT_PROJECT_CATEGORY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_QUESTION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEMAND") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("DESCREPTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_QUESTION"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_LEAF") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NUM") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PARENT_ID") .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("TEXT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PARENT_ID"); b.ToTable("T_BS_CHECK_TYPE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CheckLevel_ENUMS_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_TYPE_ID"); b.HasIndex("CheckLevel_ENUMS_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_CHECK_TYPE_LEVEL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_PLAN_SET", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECKTIME") .HasColumnType("datetime2"); b.Property("CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DATA") .HasColumnType("int"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLANCHECKFREQUENCY") .HasColumnType("int"); b.Property("PLANCHECKOBJECT") .HasColumnType("int"); b.Property("RUNDATA") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("RUNSETTIME") .HasColumnType("datetime2"); b.Property("WEEKDATA") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CHECK_TYPE_ID"); b.HasIndex("CHECK_TYPE_LEVEL_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_BS_PLAN_SET"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVE_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECKOBJECT") .HasColumnType("int"); b.Property("CHECKTIME") .HasColumnType("datetime2"); b.Property("CHECK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.Property("CHECK_TYPE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(30) .HasColumnType("nvarchar(30)"); b.Property("CREACTTYPE") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENABLE_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLAN_SET_ID") .HasColumnType("uniqueidentifier"); b.Property("STATUCHECK") .HasColumnType("int"); b.Property("STATUSPLAN") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("APPROVE_ID"); b.HasIndex("CHECK_TYPE_ID"); b.HasIndex("CHECK_TYPE_LEVEL_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PLAN_SET_ID"); b.ToTable("T_BS_SAFE_CHECK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECKRESULT") .HasColumnType("int"); b.Property("CHECKTYPE") .HasColumnType("int"); b.Property("CHECK_MAIN_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUESTION_LEVEL") .HasColumnType("int"); b.Property("REMARK_RESULT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_MAIN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_ID"); b.ToTable("T_BS_SAFE_CHECK_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECKFALSEREASON") .HasColumnType("int"); b.Property("CHECKTIME") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ISCHECK") .HasColumnType("bit"); b.Property("ISMAINCHECK") .HasColumnType("bit"); b.Property("ISSAMEMAINCHECKOK") .HasColumnType("bit"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_DETAIL_ID"); b.HasIndex("SAFE_CHECK_ID"); b.HasIndex("USER_ID"); b.ToTable("T_BS_SAFE_CHECK_DETAIL_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_ID"); b.ToTable("T_BS_SAFE_CHECK_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_PROJECT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_PROJECT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_ID"); b.ToTable("T_BS_SAFE_CHECK_PROJECT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_PROJECT_CATEGORY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHECK_PROJECT_CATEGORY_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHECK_PROJECT_CATEGORY_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_ID"); b.ToTable("T_BS_SAFE_CHECK_PROJECT_CATEGORY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_RISK_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_AREA_ID"); b.HasIndex("SAFE_CHECK_ID"); b.ToTable("T_BS_SAFE_CHECK_RISK_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_USERSIGN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SAFE_CHECK_ID") .HasColumnType("uniqueidentifier"); b.Property("SUSER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("SAFE_CHECK_ID"); b.HasIndex("SUSER_ID"); b.ToTable("T_BS_SAFE_CHECK_USERSIGN"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ADDRESS") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CHANGE_SHIFT_TIME") .HasColumnType("datetime2"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_CLASS_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CURRENT_CLASS_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CURRENT_CLASS_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("CURRENT_CLASS_STATUS") .HasColumnType("int"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPARTMENT_POST_ID") .HasColumnType("uniqueidentifier"); b.Property("DEVICE_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("DEVICE_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("DEVICE_STATUS") .HasColumnType("int"); b.Property("DEVICE_STORAGE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EDITOR_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENVIRONMENT_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENVIRONMENT_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENVIRONMENT_STATUS") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LAST_CLASS_FINISH_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("LAST_CLASS_FINISH_STATUS") .HasColumnType("int"); b.Property("LAST_CLASS_RECORD_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("LAST_CLASS_RECORD_STATUS") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SHIFT_STATUS") .HasColumnType("int"); b.Property("SUPPLIES_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SUPPLIES_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SUPPLIES_STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("CURRENT_CLASS_RECORD_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("DEPARTMENT_POST_ID"); b.HasIndex("EDITOR_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_CHANGE_SHIFT_RECORD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_AFTER_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHANGE_SHIFT_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_SHIFT_STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CHANGE_SHIFT_RECORD_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_CHANGE_SHIFT_RECORD_AFTER_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHANGE_SHIFT_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_ImgFileID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CHANGE_SHIFT_RECORD_ID"); b.HasIndex("Nav_ImgFileID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_CHANGE_SHIFT_RECORD_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_PRE_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHANGE_SHIFT_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_SHIFT_STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CHANGE_SHIFT_RECORD_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_CHANGE_SHIFT_RECORD_PRE_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_DATE") .HasColumnType("datetime2"); b.Property("AUDIT_OPINION") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("CHARGE_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CLASS_TEAM_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_CLASS_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CURRENT_CLASS_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CURRENT_CLASS_STATUS") .HasColumnType("int"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPARTMENT_POST_ID") .HasColumnType("uniqueidentifier"); b.Property("DEVICE_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("DEVICE_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("DEVICE_STATUS") .HasColumnType("int"); b.Property("DEVICE_STORAGE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EDITOR_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("ENVIRONMENT_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENVIRONMENT_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENVIRONMENT_STATUS") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("NEXT_CLASS_TEAM_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_DATE") .HasColumnType("datetime2"); b.Property("SHIFT_STATUS") .HasColumnType("int"); b.Property("SUPPLIES_MEASURE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SUPPLIES_QUESTION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SUPPLIES_STATUS") .HasColumnType("int"); b.Property("SUPPLIES_USED") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("CLASS_TEAM_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("DEPARTMENT_POST_ID"); b.HasIndex("EDITOR_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_CURRENT_CLASS_RECORD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_CLASS_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CURRENT_CLASS_RECORD_ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_CURRENT_CLASS_RECORD_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_LABOUR_SUPPLY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_CLASS_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABOUR_SUPPLY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_LabourSupplyID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CURRENT_CLASS_RECORD_ID"); b.HasIndex("Nav_LabourSupplyID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_CURRENT_CLASS_RECORD_LABOUR_SUPPLY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CURRENT_CLASS_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_SHIFT_STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CURRENT_CLASS_RECORD_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_CURRENT_CLASS_RECORD_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_LABOUR_SUPPLY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LABOUR_SUPPLY_TYPE") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_LABOUR_SUPPLY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LANUNCH_TIME") .HasColumnType("datetime2"); b.Property("LANUNCH_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("LANUNCH_USER_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FO_PRE_OPER_SCH"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRE_OPER_SCH_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PRE_OPER_SCH_ID"); b.ToTable("T_FO_PRE_OPER_SCH_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRE_OPER_SCH_ID") .HasColumnType("uniqueidentifier"); b.Property("REAL_DEPARTMENT_POST_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PRE_OPER_SCH_ID"); b.HasIndex("REAL_DEPARTMENT_POST_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_PRE_OPER_SCH_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CLASS_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOB_CONTENT") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("MEETING_TIME") .HasColumnType("datetime2"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("OTHER_CONTENT") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("PRE_MEETING_STATUS") .HasColumnType("int"); b.Property("PROTECT_MEASURE") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("RATE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("START_TIME") .HasColumnType("datetime2"); b.Property("TEAM_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CLASS_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_PRE_SHIFT_MEETING_RECORD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRE_SHIFT_MEETING_RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PRE_SHIFT_MEETING_RECORD_ID"); b.ToTable("T_FO_PRE_SHIFT_MEETING_RECORD_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PRE_SHIFT_MEETING_RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("REAL_DEPARTMENT_POST_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PRE_SHIFT_MEETING_RECORD_ID"); b.HasIndex("REAL_DEPARTMENT_POST_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_PRE_SHIFT_MEETING_RECORD_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ACTIVITY_CONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ACTIVITY_TIME") .HasColumnType("datetime2"); b.Property("ADDRESS") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CODE") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DURATION") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTE_AKER_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TA_STATUS") .HasColumnType("int"); b.Property("TEAM_ID") .HasColumnType("uniqueidentifier"); b.Property("TITLE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("NOTE_AKER_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ID"); b.ToTable("T_FO_TEAM_ACTIVITY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TEAM_ACTIVITY_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ACTIVITY_ID"); b.ToTable("T_FO_TEAM_ACTIVITY_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ATTEND_STATUS") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SIGN_IN_STATUS") .HasColumnType("int"); b.Property("TEAM_ACTIVITY_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TEAM_ACTIVITY_ID"); b.HasIndex("USER_ID"); b.ToTable("T_FO_TEAM_ACTIVITY_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ANALYSIS_PERSON", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LICENSE_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("LICENSE_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_ANALYSIS_PERSON"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_ANALYSIS_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CRUCIAL_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CRUCIAL_TASK_ANALYSIS_ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_CRUCIAL_ANALYSIS_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_ANALYSIS_PERSON", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CRUCIAL_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CRUCIAL_TASK_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_CRUCIAL_ANALYSIS_PERSON"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("COMPLETE_DATE") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("OPERATION_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_CRUCIAL_TASK_ANALYSIS"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CRUCIAL_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("DealMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("SafeConfirmsStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SafeMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("CRUCIAL_TASK_ANALYSIS_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_CRUCIAL_TASK_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EDUCATION_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EDUCATION_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EMERGENCY_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EMERGENCY_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ENGINEERING_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_ENGINEERING_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EQUIPMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODEL") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("TYPE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EQUIPMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_C", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_C"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_E", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_E"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXPOSURE_LIMIT_VALUE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EXPOSURE_NUMBER") .HasColumnType("int"); b.Property("EXPOSURE_TIME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EngineeringMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_POSITION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("HAZARD_STATUS") .HasColumnType("int"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_SHOW") .HasColumnType("int"); b.Property("IndividualMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ManagementMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("MonitorMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("Nav_AreaID") .HasColumnType("uniqueidentifier"); b.Property("Nav_HazardLevelID") .HasColumnType("uniqueidentifier"); b.Property("Nav_IdentifyingID") .HasColumnType("uniqueidentifier"); b.Property("Nav_OccupationalRiskID") .HasColumnType("uniqueidentifier"); b.Property("Nav_PersonLiableID") .HasColumnType("uniqueidentifier"); b.Property("OCCUPATIONALRISK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_LIABLE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_AreaID"); b.HasIndex("Nav_HazardLevelID"); b.HasIndex("Nav_IdentifyingID"); b.HasIndex("Nav_OccupationalRiskID"); b.HasIndex("Nav_PersonLiableID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_HAZARD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_ENGINEERING_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENGINEERING_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_EngineeringMeasuresID") .HasColumnType("uniqueidentifier"); b.Property("Nav_EvaluationHazardID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_EngineeringMeasuresID"); b.HasIndex("Nav_EvaluationHazardID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_HAZARD_ENGINEERING_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_INDIVIDUAL_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INDIVIDUAL_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_EvaluationHazardID") .HasColumnType("uniqueidentifier"); b.Property("Nav_IndividualMeasuresID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_EvaluationHazardID"); b.HasIndex("Nav_IndividualMeasuresID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_HAZARD_INDIVIDUAL_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_MANAGEMENT_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MANAGEMENT_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_EvaluationHazardID") .HasColumnType("uniqueidentifier"); b.Property("Nav_ManagementMeasuresID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_EvaluationHazardID"); b.HasIndex("Nav_ManagementMeasuresID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_HAZARD_MANAGEMENT_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_MONITOR_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MONITOR_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("Nav_EvaluationHazardID") .HasColumnType("uniqueidentifier"); b.Property("Nav_MonitorMeasuresID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_EvaluationHazardID"); b.HasIndex("Nav_MonitorMeasuresID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_HAZARD_MONITOR_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_L", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_L"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_LEVEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DESCRIBE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LEVEL") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("LOWER_IS_CONTAIN") .HasColumnType("bit"); b.Property("LOWER_LIMIT") .HasColumnType("decimal(18,2)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("UPPER_IS_CONTAIN") .HasColumnType("bit"); b.Property("UPPER_LIMIT") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_LEVEL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_REQUIREMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_REQUIREMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVECODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("AUDIT_STATUE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_TIME") .HasColumnType("datetime2"); b.Property("EVALUATE_TYPE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTE_TAKER_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REQUIREMENT_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("INITIATING_DEPARTMENT"); b.HasIndex("NOTE_TAKER_ID"); b.HasIndex("ORG_ID"); b.HasIndex("REQUIREMENT_ID"); b.ToTable("T_HM_EVALUATE_RESULT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RESULT_ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_ID") .HasColumnType("uniqueidentifier"); b.Property("EXPOSURE_LIMIT_VALUE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("EXPOSURE_NUMBER") .HasColumnType("int"); b.Property("EXPOSURE_TIME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("EngineeringMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_POSITION") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("HAZARD_STATUS") .HasColumnType("int"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IndividualMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ManagementMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("MonitorMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("OCCUPATIONALRISK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_LIABLE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("EVALUATE_RESULT_ID"); b.HasIndex("HAZARD_LEVEL_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("OCCUPATIONALRISK_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_LIABLE_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_EDUCATION_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDUCATION_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDUCATION_MEASURES_ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_EDUCATION_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_EMERGENCY_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EMERGENCY_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EMERGENCY_MEASURES_ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_EMERGENCY_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_ENGINEERING_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENGINEERING_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ENGINEERING_MEASURES_ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_ENGINEERING_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_INDIVIDUAL_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INDIVIDUAL_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("INDIVIDUAL_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_INDIVIDUAL_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_MANAGEMENT_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MANAGEMENT_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("MANAGEMENT_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_MANAGEMENT_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_MONITOR_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RESULT_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MONITOR_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RESULT_HAZARD_ID"); b.HasIndex("MONITOR_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_HAZARD_MONITOR_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_C_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_E_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_L_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_RESULT_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_SCORE") .HasColumnType("decimal(18,2)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_LIABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("RISK_PLACE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("RISK_STATUS") .HasColumnType("int"); b.Property("TYPE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("EVALUATE_C_ID"); b.HasIndex("EVALUATE_E_ID"); b.HasIndex("EVALUATE_LEVEL_ID"); b.HasIndex("EVALUATE_L_ID"); b.HasIndex("EVALUATE_RESULT_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_LIABLE_ID"); b.HasIndex("TYPE_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EDUCATION_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDUCATION_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDUCATION_MEASURES_ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_EDUCATION_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EMERGENCY_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EMERGENCY_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EMERGENCY_MEASURES_ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_EMERGENCY_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_ENGINEERING_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENGINEERING_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ENGINEERING_MEASURES_ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_ENGINEERING_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EQUIPMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EQUIPMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EQUIPMENT_ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_EQUIPMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_FACILITIES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FACILITIES_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("FACILITIES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_FACILITIES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_INDIVIDUAL_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INDIVIDUAL_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("INDIVIDUAL_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_INDIVIDUAL_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_MANAGEMENT_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MANAGEMENT_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("MANAGEMENT_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_MANAGEMENT_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_WORKDUTY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RESULT_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("WORKDUTY_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RESULT_RISK_ID"); b.HasIndex("ORG_ID"); b.HasIndex("WORKDUTY_ID"); b.ToTable("T_HM_EVALUATE_RESULT_RISK_WORKDUTY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_C_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_E_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_L_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATE_SCORE") .HasColumnType("decimal(18,2)"); b.Property("EducationTrainingMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EmergencyDisposalMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EngineeringMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IndividualMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ManagementMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_LIABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("RISK_PLACE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("STATUS") .HasColumnType("int"); b.Property("TYPE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("EVALUATE_C_ID"); b.HasIndex("EVALUATE_E_ID"); b.HasIndex("EVALUATE_LEVEL_ID"); b.HasIndex("EVALUATE_L_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_LIABLE_ID"); b.HasIndex("TYPE_ID"); b.ToTable("T_HM_EVALUATE_RISK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EDUCATION_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EDUCATION_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EDUCATION_MEASURES_ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_EDUCATION_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EMERGENCY_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("EMERGENCY_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EMERGENCY_MEASURES_ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_EMERGENCY_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_ENGINEERING_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENGINEERING_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ENGINEERING_MEASURES_ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_ENGINEERING_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EQUIPMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EQUIPMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EQUIPMENT_ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_EQUIPMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_FACILITIES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FACILITIES_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("FACILITIES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_FACILITIES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_INDIVIDUAL_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INDIVIDUAL_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("INDIVIDUAL_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_INDIVIDUAL_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_MANAGEMENT_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MANAGEMENT_MEASURES_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("MANAGEMENT_MEASURES_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATE_RISK_MANAGEMENT_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_EQUIPMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EQUIPMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_RECORD_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EQUIPMENT_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_RECORD_DETAIL_ID"); b.ToTable("T_HM_EVALUATE_RISK_RECORD_EQUIPMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_FACILITIES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FACILITIES_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_RECORD_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("FACILITIES_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_RECORD_DETAIL_ID"); b.ToTable("T_HM_EVALUATE_RISK_RECORD_FACILITIES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_WORKDUTY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_RECORD_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("WORKDUTY_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_RECORD_DETAIL_ID"); b.HasIndex("WORKDUTY_ID"); b.ToTable("T_HM_EVALUATE_RISK_RECORD_WORKDUTY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_WORKDUTY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("POST_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_RISK_ID"); b.HasIndex("ORG_ID"); b.HasIndex("POST_ID"); b.ToTable("T_HM_EVALUATE_RISK_WORKDUTY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_DETAIL_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DETAIL_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATION_DETAIL_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_PLAN_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_PLAN_ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_EVALUATION_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVECODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CHECK_STATUS") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPUTY_GROUP_LEADER_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPUTY_GROUP_LEADER_OPINION") .HasColumnType("int"); b.Property("DOCUMENT_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_CONTENT") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EVALUATION_DATE") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("GROUP_LEADER_ID") .HasColumnType("uniqueidentifier"); b.Property("GROUP_LEADER_OPINION") .HasColumnType("int"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RELEASE_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPUTY_GROUP_LEADER_ID"); b.HasIndex("GROUP_LEADER_ID"); b.HasIndex("INITIATING_DEPARTMENT"); b.HasIndex("ORG_ID"); b.HasIndex("RELEASE_USER_ID"); b.ToTable("T_HM_EVALUATION_PLAN"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATION_PLAN_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATION_PLAN_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_EVALUATION_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FACILITIES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("TYPE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_FACILITIES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FILE_PUBLISH", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CRUCIAL_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("EDITION") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("LICENSE_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORDINARY_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PUBLISH_DATE") .HasColumnType("datetime2"); b.Property("SecretLevel") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("CRUCIAL_TASK_ANALYSIS_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("LICENSE_ANALYSIS_ID"); b.HasIndex("ORDINARY_TASK_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_FILE_PUBLISH"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FILE_PUBLISH_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_PUBLISH_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("FILE_PUBLISH_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_FILE_PUBLISH_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_LEVEL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_HAZARD_LEVEL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_STATUE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTION_TIME") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTE_TAKER_ID") .HasColumnType("uniqueidentifier"); b.Property("Nav_CreateUserID") .HasColumnType("uniqueidentifier"); b.Property("Nav_DepartmentID") .HasColumnType("uniqueidentifier"); b.Property("Nav_InitiatingDepartmentID") .HasColumnType("uniqueidentifier"); b.Property("Nav_NoteTakerID") .HasColumnType("uniqueidentifier"); b.Property("Nav_TaskID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_CreateUserID"); b.HasIndex("Nav_DepartmentID"); b.HasIndex("Nav_InitiatingDepartmentID"); b.HasIndex("Nav_NoteTakerID"); b.HasIndex("Nav_TaskID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_HAZARD_RECORD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_HAZARD_RECORD_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_HAZARD_ID") .HasColumnType("uniqueidentifier"); b.Property("EXPOSURE_LIMIT_VALUE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("EXPOSURE_NUMBER") .HasColumnType("int"); b.Property("EXPOSURE_TIME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("HAZARD_LEVEL_ID") .HasColumnType("uniqueidentifier"); b.Property("HAZARD_POSITION") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("HAZARD_STATUS") .HasColumnType("int"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MODIFY_TYPE") .HasColumnType("int"); b.Property("OCCUPATIONALRISK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PERSON_LIABLE_ID") .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("EVALUATE_HAZARD_ID"); b.HasIndex("HAZARD_LEVEL_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("OCCUPATIONALRISK_ID"); b.HasIndex("ORG_ID"); b.HasIndex("PERSON_LIABLE_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_HAZARD_RECORD_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("FILE_NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_HAZARD_RECORD_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_HAZARD_RECORD_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_HAZARD_RECORD_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_STATUE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DONE") .HasColumnType("int"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_CreateUserID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("INITIATING_DEPARTMENT"); b.HasIndex("Nav_CreateUserID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_HAZARD_TASK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_HAZARD_TASK_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_USER_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_HAZARD_TASK_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_DETAIL_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_HAZARD_TASK_DETAIL_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_HAZARD_TASK_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_HAZARD_TASK_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LIMIT_UNIT") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_TYPE") .HasColumnType("int"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_INDIVIDUAL_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_INDIVIDUAL_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("COMPLETE_DATE") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_JOBTASK_IDENTIFY"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOBTASK_IDENTIFY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("JOBTASK_IDENTIFY_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_JOBTASK_IDENTIFY_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL_POST", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOBTASK_IDENTIFY_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("POST_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("JOBTASK_IDENTIFY_DETAIL_ID"); b.HasIndex("ORG_ID"); b.HasIndex("POST_ID"); b.ToTable("T_HM_JOBTASK_IDENTIFY_DETAIL_POST"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOBTASK_IDENTIFY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("JOBTASK_IDENTIFY_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_JOBTASK_IDENTIFY_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("JOBTASK_IDENTIFY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("JOBTASK_IDENTIFY_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_JOBTASK_IDENTIFY_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("COMPLETE_DATE") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("OPERATION_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_LICENSE_ANALYSIS"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_LEVEL") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DealMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LICENSE_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("SafeConfirmsStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SafeMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("LICENSE_ANALYSIS_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_LICENSE_ANALYSIS_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LICENSE_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("LICENSE_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_LICENSE_ANALYSIS_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_MANAGEMENT_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_MONITOR_MEASURES", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_MONITOR_MEASURES"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_RELEASE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("NOTICE_RELEASE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_NOTICE_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DOCUMENT_CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DOCUMENT_LEVEL") .HasColumnType("int"); b.Property("DOCUMENT_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DOCUMENT_VERSION") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NOTICE_RELEASE_TYPE") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RELEASE_STATUS") .HasColumnType("int"); b.Property("RELEASE_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("RELEAS_DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("RELEASE_USER_ID"); b.HasIndex("RELEAS_DEPARTMENT_ID"); b.HasIndex("TASK_ANALYZE_ID"); b.ToTable("T_HM_NOTICE_RELEASE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE_DEPARTMENT", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTICE_RELEASE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("NOTICE_RELEASE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_NOTICE_RELEASE_DEPARTMENT"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OCCUPATIONAL_RISK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OCCUPATIONAL_RISK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_INSTRUCTION_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_INSTRUCTION_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_LEVEL") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DealMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_IMPORTANT") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_LICENSE") .HasColumnType("int"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("SafeConfirmsStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SafeMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("TASK_LEVEL") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_OPERATION_LINK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK_EVALUATE_RISK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RISK_ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_LINK_EVALUATE_RISK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_STEP"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Nav_TaskAnalyzeDetailID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_TaskAnalyzeDetailID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Nav_TaskAnalyzeDetailID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_TaskAnalyzeDetailID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Nav_TaskAnalyzeDetailID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_TaskAnalyzeDetailID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DEAL_MEASURE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DEAL_MEASURE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("COMPLETION_TIME") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("COMPLETION_TIME") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("JOBTASK_IDENTIFY_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("JOBTASK_IDENTIFY_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ANALYZE_E_ID") .HasColumnType("uniqueidentifier"); b.Property("ANALYZE_H_ID") .HasColumnType("uniqueidentifier"); b.Property("ANALYZE_L_ID") .HasColumnType("uniqueidentifier"); b.Property("ANALYZE_P_ID") .HasColumnType("uniqueidentifier"); b.Property("ANALYZE_R_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_MAINTASK") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_LICENSE") .HasColumnType("int"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ANALYZE_E_ID"); b.HasIndex("ANALYZE_H_ID"); b.HasIndex("ANALYZE_L_ID"); b.HasIndex("ANALYZE_P_ID"); b.HasIndex("ANALYZE_R_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("SCORE") .HasColumnType("decimal(18,2)"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("OPERATION_TASK_DISTINGUISH_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("WORKDUTY_ID") .HasColumnType("uniqueidentifier"); b.Property("WORK_TYPE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("EVALUATE_RISK_ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ID"); b.HasIndex("ORG_ID"); b.HasIndex("WORKDUTY_ID"); b.HasIndex("WORK_TYPE_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_TASK_DISTINGUISH_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("ISAGREE") .HasColumnType("int"); b.Property("ISCHARGE") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_TASK_DISTINGUISH_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_OPERATION_TASK_DISTINGUISH_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_SAFE_CONFIRM", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_SAFE_CONFIRM"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_SAFE_MEASURE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_OPERATION_TASK_SAFE_MEASURE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_ANALYSIS_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORDINARY_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORDINARY_TASK_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_ORDINARY_ANALYSIS_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_ANALYSIS_PERSON", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORDINARY_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORDINARY_TASK_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_ORDINARY_ANALYSIS_PERSON"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("COMPLETE_DATE") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_PUBLISH") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("CREATER_ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("OPERATION_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_ORDINARY_TASK_ANALYSIS"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DealMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORDINARY_TASK_ANALYSIS_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("SafeConfirmsStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("SafeMeasuresStr") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORDINARY_TASK_ANALYSIS_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_ORDINARY_TASK_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OTHER_APPROVE_LOG", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MAIN_FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_OTHER_APPROVE_LOG"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_REQUEST", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_REQUEST"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_RISK_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ANNUAL") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("PLAN_ID") .HasColumnType("uniqueidentifier"); b.Property("RELEASE_STATUE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("PLAN_ID"); b.ToTable("T_HM_RISK_EVALUATION"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CHARGE_PERSON_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("CYCLE") .HasColumnType("int"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("FREQUENCY") .HasColumnType("int"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REMARK") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("RISK_TYPE") .HasColumnType("int"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("CHARGE_PERSON_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RISK_ID"); b.ToTable("T_HM_RISK_EVALUATION_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("DETAIL_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_RISK_EVALUATION_DETAIL_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVECODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("AUDIT_STATUE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EXECUTION_TIME") .HasColumnType("datetime2"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NOTE_TAKER_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REQUEST_ID") .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("INITIATING_DEPARTMENT"); b.HasIndex("NOTE_TAKER_ID"); b.HasIndex("ORG_ID"); b.HasIndex("REQUEST_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_RISK_RECORD"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_RISK_RECORD_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("EVALUATE_RISK_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("MODIFY_TYPE") .HasColumnType("int"); b.Property("OPERATION_STEP_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("RISK_NAME") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("RISK_PLACE") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("RISK_STATUS") .HasColumnType("int"); b.Property("TYPE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("EVALUATE_RISK_ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("OPERATION_STEP_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.HasIndex("TYPE_ID"); b.ToTable("T_HM_RISK_RECORD_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_RISK_RECORD_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.ToTable("T_HM_RISK_RECORD_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_RISK_RECORD_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("APPROVECODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("AUDIT_STATUE") .HasColumnType("int"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("END_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("INITIATING_DEPARTMENT") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("IS_DONE") .HasColumnType("int"); b.Property("LEVEL") .HasColumnType("int"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_CreateUserID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("REQUEST_ID") .HasColumnType("uniqueidentifier"); b.Property("START_TIME") .HasColumnType("datetime2"); b.HasKey("ID"); b.HasIndex("INITIATING_DEPARTMENT"); b.HasIndex("Nav_CreateUserID"); b.HasIndex("ORG_ID"); b.HasIndex("REQUEST_ID"); b.ToTable("T_HM_RISK_TASK"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_AREA", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_RISK_TASK_AREA"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AREA_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("RECORD_USER_ID") .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("AREA_ID"); b.HasIndex("ORG_ID"); b.HasIndex("RECORD_USER_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_RISK_TASK_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_RISK_TASK_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_IDENTIFYING", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IDENTIFYING_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IDENTIFYING_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ID"); b.ToTable("T_HM_RISK_TASK_IDENTIFYING"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_DETAIL_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_RISK_TASK_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TYPE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_RISK_TYPE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("COMPLETION_TIME") .HasColumnType("datetime2"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEPARTMENT_ID") .HasColumnType("uniqueidentifier"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.Property("TASK_ANALYZE_TYPE") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("DEPARTMENT_ID"); b.HasIndex("OPERATION_TASK_DISTINGUISH_ANALYZE_ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_TASK_ANALYZE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AUDIT_LEVEL") .HasColumnType("int"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("OPERATION_LINK_ID") .HasColumnType("uniqueidentifier"); b.Property("OPERATION_TASK_AUDIT") .HasColumnType("int"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("OPERATION_LINK_ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ANALYZE_ID"); b.ToTable("T_HM_TASK_ANALYZE_DETAIL"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("FILE_NAME") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("Nav_FileID") .HasColumnType("uniqueidentifier"); b.Property("Nav_TaskAnalyzeDetailID") .HasColumnType("uniqueidentifier"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_DETAIL_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("Nav_FileID"); b.HasIndex("Nav_TaskAnalyzeDetailID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_TASK_ANALYZE_DETAIL_FILE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_USER", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("DEAL_STATUS") .HasColumnType("int"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("TASK_ANALYZE_ID") .HasColumnType("uniqueidentifier"); b.Property("USER_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.HasIndex("TASK_ANALYZE_ID"); b.HasIndex("USER_ID"); b.ToTable("T_HM_TASK_ANALYZE_USER"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_WORK_TYPE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CODE") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("NAME") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("STATUS") .HasColumnType("int"); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_HM_WORK_TYPE"); }); modelBuilder.Entity("APT.MS.Domain.Entities.PF.T_PF_QUESTION_UPLOAD_FILE", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CREATER_ID") .HasColumnType("uniqueidentifier"); b.Property("CREATE_TIME") .HasColumnType("datetime2"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("int"); b.Property("FLOW_ID") .HasColumnType("uniqueidentifier"); b.Property("FLOW_SEND_STATUS") .HasColumnType("int"); b.Property("FLOW_STATUS") .HasColumnType("int"); b.Property("FORM_ID") .HasColumnType("uniqueidentifier"); b.Property("IMG_FILE_ID") .HasColumnType("uniqueidentifier"); b.Property("IS_DELETED") .HasColumnType("bit"); b.Property("MODIFIER_ID") .HasColumnType("uniqueidentifier"); b.Property("MODIFY_TIME") .HasColumnType("datetime2"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uniqueidentifier"); b.Property("QUESTION_FEEDBACK_ID") .HasColumnType("uniqueidentifier"); b.HasKey("ID"); b.HasIndex("IMG_FILE_ID"); b.HasIndex("ORG_ID"); b.HasIndex("QUESTION_FEEDBACK_ID"); b.ToTable("T_PF_QUESTION_UPLOAD_FILE"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_HMI", 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.BaseData.Domain.Entities.BD.T_BD_PICTURE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM", "Nav_Enum") .WithMany() .HasForeignKey("ENUM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_ITEM", "Nav_EnumItem") .WithMany() .HasForeignKey("ENUM_ITEM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Enum"); b.Navigation("Nav_EnumItem"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_Picture") .WithMany("Nav_PictureFiles") .HasForeignKey("PICTURE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_Picture"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PLACE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PLACE", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_SERVER_INFO", 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.BaseData.Domain.Entities.BD.T_BD_SYSTEM_INFO", 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.BaseData.Domain.Entities.BD.T_BD_WORD_TEMPLATE", 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.BaseData.Domain.Entities.FM.T_FM_API", 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.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD", 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.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD", "Nav_AutoPrintRecord") .WithMany("Nav_Details") .HasForeignKey("AUTO_PRINT_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_AutoPrintRecord"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_ADD", 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.BaseData.Domain.Entities.FM.T_FM_BASE_CONFIG", b => { b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_ConsPicture") .WithMany() .HasForeignKey("APP_CONS_PICTURE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_PictureBg") .WithMany() .HasForeignKey("BACK_PIC_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_HMI", "Nav_HMI") .WithMany() .HasForeignKey("CURRENT_VOLTAGE_HMI_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_HMI", "Nav_HomeHmi") .WithMany() .HasForeignKey("HOME_HMI_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_PictureLogo") .WithMany() .HasForeignKey("LOGO_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_LowPicture") .WithMany() .HasForeignKey("LOWER_PICTURE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_MESSAGE_TEMPLATE", "Nav_MessageTemplate") .WithMany() .HasForeignKey("MESSAGE_TEMPLATE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_TopPicture") .WithMany() .HasForeignKey("T0P_PICTURE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_ConsPicture"); b.Navigation("Nav_HMI"); b.Navigation("Nav_HomeHmi"); b.Navigation("Nav_LowPicture"); b.Navigation("Nav_MessageTemplate"); b.Navigation("Nav_Org"); b.Navigation("Nav_PictureBg"); b.Navigation("Nav_PictureLogo"); b.Navigation("Nav_TopPicture"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_BASE_ENERGY", 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.BaseData.Domain.Entities.FM.T_FM_BASE_INFO", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_ITEM", "Nav_FundEunmItem") .WithMany() .HasForeignKey("FUND_ENUM_ITEM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PLACE", "Nav_Place") .WithMany() .HasForeignKey("PLACE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_ITEM", "Nav_PropEunmItem") .WithMany() .HasForeignKey("PROP_ENUM_ITEM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_FundEunmItem"); b.Navigation("Nav_Org"); b.Navigation("Nav_Place"); b.Navigation("Nav_PropEunmItem"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_HOLIDAY", "Nav_Holiday") .WithMany() .HasForeignKey("HOLIDAY_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Holiday"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR_CLASS", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", null) .WithMany("Nav_CalendarClass") .HasForeignKey("CALENDAR_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", "Nav_Calendar") .WithMany() .HasForeignKey("Nav_CalendarID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Calendar"); b.Navigation("Nav_Class"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", 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.BaseData.Domain.Entities.FM.T_FM_CLASS_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", null) .WithMany("Nav_ClassDetail") .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); 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.BaseData.Domain.Entities.FM.T_FM_COST_CENTER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_COST_CENTER", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_Person") .WithMany() .HasForeignKey("PERSON_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); b.Navigation("Nav_Person"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", "Nav_Calendar") .WithMany() .HasForeignKey("CALENDAR_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany("Nav_DepartmentCalendarConfig") .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Calendar"); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", "Nav_DepartmentCalendarConfig") .WithMany("Nav_DepartmentCalendarConfigDetail") .HasForeignKey("DEPARTMENT_CALENDAR_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Class"); b.Navigation("Nav_DepartmentCalendarConfig"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", "Nav_DepartmentCalendarConfig") .WithMany("Nav_DepartmentCalendarConfigTeam") .HasForeignKey("DEPARTMENT_CALENDAR_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Team") .WithMany() .HasForeignKey("TEAM_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_DepartmentCalendarConfig"); b.Navigation("Nav_Org"); b.Navigation("Nav_Team"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SAFEUSER", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany("Nav_SafeUser") .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", "Nav_DepartmentCalendarConfig") .WithMany() .HasForeignKey("DEPARTMENT_CALENDAR_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_DepartMent") .WithMany("Nav_DepartmentScheduling") .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Team") .WithMany() .HasForeignKey("TEAM_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Class"); b.Navigation("Nav_DepartMent"); b.Navigation("Nav_DepartmentCalendarConfig"); b.Navigation("Nav_Org"); b.Navigation("Nav_Team"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING", "Nav_DepartmentScheduling") .WithMany("Nav_DepartmentSchedulingDetail") .HasForeignKey("DEPARTMENT_SCHEDULING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_Person") .WithMany() .HasForeignKey("PERSON_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_DepartmentScheduling"); b.Navigation("Nav_Org"); b.Navigation("Nav_Person"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_TYPE", "Nav_EnumType") .WithMany() .HasForeignKey("ENUM_TYPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EnumType"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUMS", 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.BaseData.Domain.Entities.FM.T_FM_ENUM_ITEM", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUM", "Nav_Enum") .WithMany("Nav_EnumItems") .HasForeignKey("ENUM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Enum"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM_TYPE", 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.BaseData.Domain.Entities.FM.T_FM_EQUIPMENT_INTEGRATION_TASK", 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.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_ASYNCH_TEMP", 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.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG", 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.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG", "Nav_ExtConnConfig") .WithMany("Nav_Details") .HasForeignKey("EXT_CONN_CONFIG_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ExtConnConfig"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_LOG", 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.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_TRANS", 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.BaseData.Domain.Entities.FM.T_FM_HOLIDAY", 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.BaseData.Domain.Entities.FM.T_FM_HOLIDAY_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_HOLIDAY", null) .WithMany("Nav_HolidayDetails") .HasForeignKey("HOLIDAY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); 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.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG", 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.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG", "Nav_ImportConfig") .WithMany("Nav_Details") .HasForeignKey("IMPORT_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_DETAIL", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("Nav_ParentID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImportConfig"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_FIELD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_DETAIL", "Nav_ImportConfigDetail") .WithMany("Nav_Fields") .HasForeignKey("IMPORT_CONFIG_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImportConfigDetail"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_INFO", 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.BaseData.Domain.Entities.FM.T_FM_MESSAGE_TEMPLATE", 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.BaseData.Domain.Entities.FM.T_FM_MONITORING", 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.BaseData.Domain.Entities.FM.T_FM_NOTICE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_Person") .WithMany() .HasForeignKey("PERSON_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Person"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION_ACCEPTED", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION", "Nav_Notification") .WithMany("Nav_Accepteds") .HasForeignKey("NOTIFICATION_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Notification"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION_PERMIT", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION", "Nav_Notification") .WithMany("Nav_Permits") .HasForeignKey("NOTIFICATION_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Notification"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL", 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.BaseData.Domain.Entities.FM.T_FM_PANEL_BELONG_ROLE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_BelongRole") .WithMany("Nav_Panels") .HasForeignKey("BELONG_ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PANEL", "Nav_Panel") .WithMany() .HasForeignKey("PANEL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRole"); b.Navigation("Nav_Org"); b.Navigation("Nav_Panel"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL_INFO", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_INFO", "Nav_Info") .WithMany() .HasForeignKey("INFO_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PANEL", null) .WithMany("Nav_PanelInfo") .HasForeignKey("PANEL_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Nav_Info"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_DepartMent") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Post") .WithMany() .HasForeignKey("POST_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_DepartMent"); b.Navigation("Nav_Org"); b.Navigation("Nav_Post"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PLAN_PARAM", 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.BaseData.Domain.Entities.FM.T_FM_PRINTER", 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.BaseData.Domain.Entities.FM.T_FM_PRINTER_TASK", 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.BaseData.Domain.Entities.FM.T_FM_ROLE", 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.BaseData.Domain.Entities.FM.T_FM_ROLE_DEPARTMENT", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_Role") .WithMany() .HasForeignKey("ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_Role"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", 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.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP_BELONG_ROLE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_BelongRole") .WithMany() .HasForeignKey("BELONG_ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", "Nav_RoleGroup") .WithMany("Nav_BelongRoles") .HasForeignKey("ROLE_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRole"); b.Navigation("Nav_Org"); b.Navigation("Nav_RoleGroup"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PermissionForm") .WithMany() .HasForeignKey("PERMISSION_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_Role") .WithMany("Nav_MenuPermissions") .HasForeignKey("ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PermissionForm"); b.Navigation("Nav_Role"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM_BTN", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_BTN", "Nav_Btn") .WithMany() .HasForeignKey("BTN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM", "Nav_RoleMenuPermission") .WithMany("Nav_PermissionBtns") .HasForeignKey("ROLE_MENU_PERMISSION_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Btn"); b.Navigation("Nav_Org"); b.Navigation("Nav_RoleMenuPermission"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM_COL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_COLUMN", "Nav_Column") .WithMany() .HasForeignKey("COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM", "Nav_RoleMenuPermission") .WithMany("Nav_PermissionColumns") .HasForeignKey("ROLE_MENU_PERMISSION_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Nav_Column"); b.Navigation("Nav_Org"); b.Navigation("Nav_RoleMenuPermission"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_ATTR", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PLAN_PARAM", "Nav_PlanParam") .WithMany() .HasForeignKey("PLAN_PARAM_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PlanParam"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_BELONG_ROLE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_BelongRole") .WithMany() .HasForeignKey("Nav_BelongRoleID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRole"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_DYNAMIC", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PLAN_PARAM", "Nav_PlanParam") .WithMany() .HasForeignKey("PLAN_PARAM_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PlanParam"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_STAGE_PLAN", 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.BaseData.Domain.Entities.FM.T_FM_SYNC_LOG", 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.BaseData.Domain.Entities.FM.T_FM_SYNC_LOG_DETAIL", 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.BaseData.Domain.Entities.FM.T_FM_SYNC_TASK", 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.BaseData.Domain.Entities.FM.T_FM_TEAM", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_ChargePerson") .WithMany() .HasForeignKey("CHARGE_PERSON_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ChargePerson"); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_TEAM_PERSON", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_Person") .WithMany("Nav_TeamPersons") .HasForeignKey("PERSON_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Team") .WithMany("Nav_TeamPersons") .HasForeignKey("TEAM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Person"); b.Navigation("Nav_Team"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_UNIT", 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.BaseData.Domain.Entities.FM.T_FM_USER", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany("Nav_UserList") .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", "Nav_Person") .WithOne("Nav_User") .HasForeignKey("APT.BaseData.Domain.Entities.FM.T_FM_USER", "PERSON_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_Person"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_ROLE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_BelongRole") .WithMany() .HasForeignKey("BELONG_ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany("Nav_BelongRoles") .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRole"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_ROLE_GROUP", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", "Nav_BelongRoleGroup") .WithMany() .HasForeignKey("BELONG_ROLE_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany("Nav_BelongRoleGroups") .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRoleGroup"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_BELONG_USER_GROUP", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", "Nav_BelongUserGroup") .WithMany() .HasForeignKey("BELONG_USER_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany("Nav_BelongUserGroups") .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongUserGroup"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("Nav_UserID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_COL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_COLUMN", "Nav_Column") .WithMany() .HasForeignKey("COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_TAB", "Nav_HiddenTable") .WithMany("Nav_HiddenColumns") .HasForeignKey("USER_CUSTOM_CONFIG_H_TAB_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Column"); b.Navigation("Nav_HiddenTable"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_TAB", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_PageTable") .WithMany() .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", "Nav_UserCustomConfig") .WithMany("Nav_HiddenTables") .HasForeignKey("USER_CUSTOM_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTable"); b.Navigation("Nav_UserCustomConfig"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", "Nav_PageEdit") .WithMany() .HasForeignKey("PAGE_EDIT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", "Nav_UserCustomConfig") .WithMany("Nav_Edits") .HasForeignKey("USER_CUSTOM_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageEdit"); b.Navigation("Nav_UserCustomConfig"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT_COL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", "Nav_EditColumn") .WithMany() .HasForeignKey("EDIT_COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT", "Nav_UserCCEdit") .WithMany("Nav_EditColumns") .HasForeignKey("USER_C_C_EDIT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EditColumn"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserCCEdit"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT_H_COL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", "Nav_EditColumn") .WithMany() .HasForeignKey("EDIT_COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT", "Nav_UserCCEdit") .WithMany("Nav_HiddenCols") .HasForeignKey("USER_C_C_EDIT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EditColumn"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserCCEdit"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", "Nav_UserCustomConfig") .WithMany("Nav_Querys") .HasForeignKey("USER_CUSTOM_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); b.Navigation("Nav_UserCustomConfig"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_FIELD", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_GROUP", "Nav_UserCCQueryGroup") .WithMany() .HasForeignKey("USER_C_C_QUERY_GROUP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY", "Nav_UserCCQuery") .WithMany("Nav_Fields") .HasForeignKey("USER_C_C_QUERY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_UserCCQuery"); b.Navigation("Nav_UserCCQueryGroup"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_GROUP", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_GROUP", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY", "Nav_UserCCQuery") .WithMany("Nav_Groups") .HasForeignKey("USER_C_C_QUERY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); b.Navigation("Nav_UserCCQuery"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_PageTable") .WithMany() .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", "Nav_UserCustomConfig") .WithMany("Nav_Tabls") .HasForeignKey("USER_CUSTOM_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTable"); b.Navigation("Nav_UserCustomConfig"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE_COL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_COLUMN", "Nav_Column") .WithMany() .HasForeignKey("COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE", "Nav_UserCCTable") .WithMany("Nav_Columns") .HasForeignKey("USER_C_C_TABLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Column"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserCCTable"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_DEPARTMENT", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany("Nav_UserDeparts") .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", 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.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_ROLE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", "Nav_BelongRole") .WithMany() .HasForeignKey("BELONG_ROLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", "Nav_UserGroup") .WithMany("Nav_BelongRoles") .HasForeignKey("USER_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRole"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserGroup"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_R_G", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", "Nav_BelongRoleGroup") .WithMany() .HasForeignKey("BELONG_ROLE_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", "Nav_UserGroup") .WithMany("Nav_BelongRoleGroups") .HasForeignKey("USER_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongRoleGroup"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserGroup"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP_BELONG_U_G", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", "Nav_BelongUserGroup") .WithMany() .HasForeignKey("BELONG_USER_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", "Nav_UserGroup") .WithMany("Nav_BelongUserGroups") .HasForeignKey("USER_GROUP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_BelongUserGroup"); b.Navigation("Nav_Org"); b.Navigation("Nav_UserGroup"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_PHOTO_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany("Nav_UserPhotoFiles") .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", 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.BaseData.Domain.Entities.FM.T_FM_USER_SIGN_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany("Nav_UserSignFiles") .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_TEST", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_UserPost") .WithMany("Nav_UserTests") .HasForeignKey("USER_POST_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_UserPost"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_PF_SYS_LOG", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_LogForm") .WithMany() .HasForeignKey("LOG_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_LogForm"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.LG.T_LG_OPRATE", 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.BaseData.Domain.Entities.NW.T_NW_ENTERPRISE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.NW.T_NW_ENTERPRISE", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.NW.T_NW_ROLE_DATA_PERM", 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.BaseData.Domain.Entities.NW.T_NW_ROLE_MENU", 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.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE_VERSION", "Nav_Version") .WithMany() .HasForeignKey("VERSION_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Version"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE_VERSION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE", "Nav_Rule") .WithMany("Nav_Versions") .HasForeignKey("RULE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Rule"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_CHARGE_TIME_SET", 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.BaseData.Domain.Entities.OP.T_OP_CLIENT", 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.BaseData.Domain.Entities.OP.T_OP_CLINET_OPENID", b => { b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_CLIENT", "NavClient") .WithMany() .HasForeignKey("CLIENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("NavClient"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_COMMON_QUESTION", 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.BaseData.Domain.Entities.OP.T_OP_FILE_FIRMWARE", 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.BaseData.Domain.Entities.OP.T_OP_MEMBER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_CARD", "Nav_RechargeCard") .WithMany() .HasForeignKey("RECHARGE_CARD_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_RechargeCard"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_MENU", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_MenuForm") .WithMany() .HasForeignKey("MENU_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_MENU", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_MenuForm"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_NOTICE", 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.BaseData.Domain.Entities.OP.T_OP_NOTICE_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_NOTICE", "Nav_Notice") .WithMany("Nav_NoticeDetails") .HasForeignKey("NOTICE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Notice"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_PEAK_VALLEY_CONFIG", 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.BaseData.Domain.Entities.OP.T_OP_RECHARGE_CARD", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_RFID_CARD", "Nav_CardRfid") .WithMany() .HasForeignKey("RFID_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CardRfid"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_ORDER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_CARD", "Nav_RechargeCard") .WithMany() .HasForeignKey("RECHARGE_CARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_RechargeCard"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_RECHARGE_SETTING", 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.BaseData.Domain.Entities.OP.T_OP_RFID_CARD", 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.BaseData.Domain.Entities.OP.T_OP_ROLE_MENU", 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.BaseData.Domain.Entities.OP.T_OP_TENANT", b => { b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_DB_CONN", "Nav_TenantDB") .WithMany() .HasForeignKey("DB_CONN_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", "Nav_Tenant") .WithMany() .HasForeignKey("TEMPLATE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Tenant"); b.Navigation("Nav_TenantDB"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_DB_CONN", 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.BaseData.Domain.Entities.OP.T_OP_TENANT_DOMAIN", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", "Nav_Tenant") .WithMany("Nav_Domains") .HasForeignKey("TENANT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Tenant"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT_EXPIRATION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", "Nav_TENANT") .WithMany() .HasForeignKey("TENANT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TENANT"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_USER", 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.BaseData.Domain.Entities.OP.T_OP_VERSION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", "Nav_Tenant") .WithMany() .HasForeignKey("TEMPLATE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Tenant"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_VERSION_MENU", 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.BaseData.Domain.Entities.OP.T_OP_VERSION_TENANT", 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.BaseData.Domain.Entities.PF.T_PF_COMPLAINT_LOG", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_APPROVE_DETAIL", "Nav_ApproveDetails") .WithMany() .HasForeignKey("APPROVE_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_ApproveUser") .WithMany() .HasForeignKey("COMPLAINT_USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ApproveDetails"); b.Navigation("Nav_ApproveUser"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.PF.T_PF_FORM_RELATION", 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.BaseData.Domain.Entities.PF.T_PF_VERSION_MANAGE", 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.BaseData.Domain.Entities.Platform.T_PF_DEFECT_CODE", b => { b.HasOne("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_GRADE", "Nav_DefectGrade") .WithMany("Nav_DefectCodes") .HasForeignKey("BAD_GRADE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_CODE", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_DefectGrade"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_GRADE", 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.BaseData.Domain.Entities.Platform.T_PF_ECM_LOG", 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.BaseData.Domain.Entities.T_FM_NOTIFICATION_TASK", 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.BaseData.Domain.Entities.T_PF_APPMENU", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_MenuForm") .WithMany() .HasForeignKey("MENU_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_APPMENU", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_Picture") .WithMany() .HasForeignKey("PICTURE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_MenuForm"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); b.Navigation("Nav_Picture"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE", 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.BaseData.Domain.Entities.T_PF_APPROVE_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_APPROVE", "Nav_Approve") .WithMany("Nav_ApproveDetails") .HasForeignKey("APPROVE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_ApproveUser") .WithMany() .HasForeignKey("APPROVE_USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Approve"); b.Navigation("Nav_ApproveUser"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE_TEMP", 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.BaseData.Domain.Entities.T_PF_APPROVE_TEMP_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_APPROVE_TEMP", "Nav_ApproveTemp") .WithMany("Nav_ApproveTempDetails") .HasForeignKey("APPROVE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_DefaultApproveUser") .WithMany() .HasForeignKey("DEFAULT_APPROVE_USER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ApproveTemp"); b.Navigation("Nav_DefaultApproveUser"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_BTN", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", null) .WithMany("Nav_Btns") .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_MENU", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_MenuForm") .WithMany() .HasForeignKey("MENU_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_CLIENT_MENU", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_MenuForm"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_SCOPES", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_DATA_CHANNEL", "Nav_DataChanel") .WithMany("Nav_ClientScopes") .HasForeignKey("DATA_CHANNEL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_SCOPES", "Nav_Scope") .WithMany() .HasForeignKey("SCOPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_DataChanel"); b.Navigation("Nav_Org"); b.Navigation("Nav_Scope"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CODE_RULE", 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.BaseData.Domain.Entities.T_PF_CODE_RULE_RUN_LOG", 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.BaseData.Domain.Entities.T_PF_CODE_RULE_SERIAL_LOG", 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.BaseData.Domain.Entities.T_PF_COLUMN", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_PageTable") .WithMany("Nav_Columns") .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE_PANEL", "Nav_PageTablePanel") .WithMany() .HasForeignKey("PAGE_TABLE_PANEL_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTable"); b.Navigation("Nav_PageTablePanel"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_COLUMN_FILTER", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_COLUMN", "Nav_Column") .WithMany("Nav_Filters") .HasForeignKey("COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Column"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_DATA_CHANNEL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_DATA_FREQUENCY", "Nav_DataFrequency") .WithMany() .HasForeignKey("DATA_FREQUENCY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", "Nav_Tenant") .WithMany() .HasForeignKey("TENANT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_DataFrequency"); b.Navigation("Nav_Org"); b.Navigation("Nav_Tenant"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_DATA_FREQUENCY", 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.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", "Nav_PageEdit") .WithMany("Nav_Columns") .HasForeignKey("PAGE_EDIT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT_PANEL", "Nav_PageEditPanel") .WithMany() .HasForeignKey("PAGE_EDIT_PANEL_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageEdit"); b.Navigation("Nav_PageEditPanel"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", "Nav_EditColumn") .WithMany("Nav_FillMaps") .HasForeignKey("EDIT_COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EditColumn"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP_D", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP", "Nav_EditColumnFillMap") .WithMany("Nav_Details") .HasForeignKey("EDIT_COLUMN_FILL_MAP_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EditColumnFillMap"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILTER", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", "Nav_EditColumn") .WithMany("Nav_Filters") .HasForeignKey("EDIT_COLUMN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EditColumn"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FILE", 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.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Form") .WithMany() .HasForeignKey("FrmId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FLOW_SCHEME", "InstanceScheme") .WithMany() .HasForeignKey("InstanceSchemeId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Form"); b.Navigation("InstanceScheme"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE_OPER_HIS", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE", "FlowInstance") .WithMany("OperationHistorys") .HasForeignKey("InstanceId"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("FlowInstance"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE_TRANS_HIS", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE", "FlowInstance") .WithMany("TransitionHistorys") .HasForeignKey("InstanceId"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("FlowInstance"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_SCHEME", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Form") .WithMany() .HasForeignKey("FrmId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "PermitForm") .WithMany() .HasForeignKey("PermitFrmId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Form"); b.Navigation("Nav_Org"); b.Navigation("PermitForm"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM", 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.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION", 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.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION_D", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION", "Nav_FormConfigVersion") .WithMany("Nav_Details") .HasForeignKey("FORM_CONFIG_VERSION_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_FormConfigVersion"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_CHART", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", null) .WithMany("Nav_HomeCharts") .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_HMI", b => { b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_HMI", "Nav_Hmi") .WithMany() .HasForeignKey("HMI_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", null) .WithMany("Nav_HomeHmis") .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Hmi"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_RANKING", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", null) .WithMany("Nav_HomeRankings") .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_HOME_STATISTIC", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", null) .WithMany("Nav_HomeStatistics") .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_QUERY", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID"); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE", "Nav_File") .WithMany("Nav_ImgFiles") .HasForeignKey("FILE_ID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_File"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_IMG_FILE_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE", "Nav_File") .WithMany() .HasForeignKey("FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany("Nav_Details") .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_File"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_LABEL", 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.BaseData.Domain.Entities.T_PF_MENU", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_MenuForm") .WithMany() .HasForeignKey("MENU_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_MENU", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_Picture") .WithMany() .HasForeignKey("PICTURE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_MenuForm"); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); b.Navigation("Nav_Picture"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MQTT_CONFIG", 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.BaseData.Domain.Entities.T_PF_MQTT_CONFIG_THEME", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_MQTT_CONFIG", "Nav_MqttConfig") .WithMany("Nav_MqttConfigTheme") .HasForeignKey("MQTT_CONFIG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_MqttConfig"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID"); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART_PARAM", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART", "Nav_PageChart") .WithMany("Nav_Params") .HasForeignKey("PAGE_CHART_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageChart"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CUSTOM", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", "Nav_ParamScheme") .WithMany("Nav_PageEdits") .HasForeignKey("PARAM_SCHEME_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); b.Navigation("Nav_ParamScheme"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT_PANEL", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", "Nav_PageEdit") .WithMany("Nav_Panels") .HasForeignKey("PAGE_EDIT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageEdit"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", "Nav_ParamScheme") .WithMany("Nav_PageTables") .HasForeignKey("PARAM_SCHEME_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); b.Navigation("Nav_ParamScheme"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE_PANEL", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_PageTable") .WithMany("Nav_Panels") .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTable"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TREE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PARAM_ITEM", 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.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", 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.BaseData.Domain.Entities.T_PF_PARAM_SCHEME_DETAIL", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PARAM_ITEM", "Nav_ParamItem") .WithMany() .HasForeignKey("PARAM_ITEM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", "Nav_ParamScheme") .WithMany("Nav_Details") .HasForeignKey("PARAM_SCHEME_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_ParamItem"); b.Navigation("Nav_ParamScheme"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_Form") .WithMany() .HasForeignKey("PAGE_FORM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", "Nav_Picture") .WithMany() .HasForeignKey("PICTURE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Form"); b.Navigation("Nav_Org"); b.Navigation("Nav_Picture"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER_DETAIL", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER", "Nav_PicFilter") .WithMany("Nav_PicFilterDetail") .HasForeignKey("PIC_FILTER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PicFilter"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUERY", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_PageForm") .WithMany() .HasForeignKey("PAGE_FORM_ID"); b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM_QUERY", "Nav_PageFormQuery") .WithMany("Nav_Querys") .HasForeignKey("PAGE_FORM_QUERY_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_PageForm"); b.Navigation("Nav_PageFormQuery"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUERY_APP", 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.BaseData.Domain.Entities.T_PF_QUESTION_FEEDBACK", 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.BaseData.Domain.Entities.T_PF_SCOPES", 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.BaseData.Domain.Entities.T_PF_TABLE_PARAMS", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", "Nav_PageTable") .WithMany("Nav_TableParams") .HasForeignKey("PAGE_TABLE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTable"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_TREE_COLUMN", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_PAGE_TREE", "Nav_PageTree") .WithMany("Nav_Columns") .HasForeignKey("PAGE_TREE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PageTree"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_VERSION", 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.Infrastructure.Core.DataUpdateRecord", 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.Infrastructure.Core.T_FM_ORGANIZATION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_PF_CODE_RULE_SERIAL", 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.BS.T_BS_CHECK_CONTENT", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", "Nav_CheckProject") .WithMany() .HasForeignKey("CHECK_PROJECT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckProject"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT", "Nav_Content") .WithMany("Nav_ListContentCheckTypes") .HasForeignKey("CHECK_CONTENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_CheckType") .WithMany() .HasForeignKey("CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_CATEGORY", "Nav_CheckProjectCategory") .WithMany() .HasForeignKey("Nav_CheckProjectCategoryID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckProjectCategory"); b.Navigation("Nav_CheckType"); b.Navigation("Nav_Content"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE_LEVEL", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE", "Nav_CheckContentCheckType") .WithMany("Nav_ListContentCheckTypeLevels") .HasForeignKey("CHECK_CONTENT_CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", "Nav_CheckTypeLevel") .WithMany() .HasForeignKey("T_BS_CHECK_TYPE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckContentCheckType"); b.Navigation("Nav_CheckTypeLevel"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_HM_RISK_AREA", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT", "Nav_Content") .WithMany("Nav_ListContentAreas") .HasForeignKey("CHECK_CONTENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("HM_RISK_AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Content"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_QUESTION", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT", "Nav_Content") .WithMany("Nav_ListContentQuestions") .HasForeignKey("CHECK_CONTENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_QUESTION", "Nav_Question") .WithMany() .HasForeignKey("CHECK_QUESTION_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Content"); b.Navigation("Nav_Org"); b.Navigation("Nav_Question"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_MAIN", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", "Nav_CheckProject") .WithMany() .HasForeignKey("CHECK_PROJECT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_PROJECT_CATEGORY", "Nav_CheckProjectProjectCategory") .WithMany() .HasForeignKey("CHECK_PROJECT_PROJECT_CATEGORY_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_QUESTION", "Nav_CheckQuestion") .WithMany() .HasForeignKey("CHECK_QUESTION_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_CheckType") .WithMany() .HasForeignKey("CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", "Nav_CheckTypeLevel") .WithMany() .HasForeignKey("CHECK_TYPE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_RiskArea") .WithMany() .HasForeignKey("RISK_AREA_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CheckProject"); b.Navigation("Nav_CheckProjectProjectCategory"); b.Navigation("Nav_CheckQuestion"); b.Navigation("Nav_CheckType"); b.Navigation("Nav_CheckTypeLevel"); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskArea"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", 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.BS.T_BS_CHECK_PROJECT_CATEGORY", 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.BS.T_BS_CHECK_PROJECT_PROJECT_CATEGORY", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_CATEGORY", "Nav_CheckProjectCategory") .WithMany() .HasForeignKey("CHECK_PROJECT_CATEGORY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", "Nav_CheckProject") .WithMany("Nav_ListCheckProjectProjectCategory") .HasForeignKey("CHECK_PROJECT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckProject"); b.Navigation("Nav_CheckProjectCategory"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_QUESTION", 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.BS.T_BS_CHECK_TYPE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_Parent") .WithMany("Nav_Children") .HasForeignKey("PARENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Parent"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_CheckType") .WithMany("Nav_ListCheckTypeLevel") .HasForeignKey("CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_ENUMS", "Nav_Enums") .WithMany() .HasForeignKey("CheckLevel_ENUMS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckType"); b.Navigation("Nav_Enums"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_PLAN_SET", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_CheckType") .WithMany() .HasForeignKey("CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", "Nav_CheckTypeLevel") .WithMany() .HasForeignKey("CHECK_TYPE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckType"); b.Navigation("Nav_CheckTypeLevel"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_APPROVE", "Nav_Approve") .WithMany() .HasForeignKey("APPROVE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", "Nav_CheckType") .WithMany() .HasForeignKey("CHECK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE_LEVEL", "Nav_CheckTypeLevel") .WithMany() .HasForeignKey("CHECK_TYPE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_PLAN_SET", "Nav_PlanSet") .WithMany() .HasForeignKey("PLAN_SET_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Approve"); b.Navigation("Nav_CheckType"); b.Navigation("Nav_CheckTypeLevel"); b.Navigation("Nav_Org"); b.Navigation("Nav_PlanSet"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_MAIN", "Nav_CheckMain") .WithMany() .HasForeignKey("CHECK_MAIN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_ListSafeCheckDetail") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckMain"); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL", "Nav_SafeCheckDetail") .WithMany("Nav_ListCheckDetailUser") .HasForeignKey("SAFE_CHECK_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany() .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); b.Navigation("Nav_SafeCheckDetail"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_Files") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_PROJECT", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", "Nav_CheckProject") .WithMany() .HasForeignKey("CHECK_PROJECT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_ListCheckProject") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckProject"); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_PROJECT_CATEGORY", b => { b.HasOne("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT_CATEGORY", "Nav_CheckProjectCategory") .WithMany() .HasForeignKey("CHECK_PROJECT_CATEGORY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_ListCheckProjectCategory") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CheckProjectCategory"); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_RISK_AREA", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_RiskArea") .WithMany() .HasForeignKey("RISK_AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_ListCheckRiskArea") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskArea"); b.Navigation("Nav_SafeCheck"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_USERSIGN", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", "Nav_SafeCheck") .WithMany("Nav_ListCheckUserSign") .HasForeignKey("SAFE_CHECK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("SUSER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_SafeCheck"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", "Nav_CurrentClassRecord") .WithMany() .HasForeignKey("CURRENT_CLASS_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_DepartmentPost") .WithMany() .HasForeignKey("DEPARTMENT_POST_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_Editor") .WithMany() .HasForeignKey("EDITOR_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Class"); b.Navigation("Nav_CurrentClassRecord"); b.Navigation("Nav_Department"); b.Navigation("Nav_DepartmentPost"); b.Navigation("Nav_Editor"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_AFTER_USER", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", "Nav_ChangeShiftRecord") .WithMany("Nav_AfterUsers") .HasForeignKey("CHANGE_SHIFT_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ChangeShiftRecord"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_FILE", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", "Nav_ChangeShiftRecord") .WithMany("Nav_Files") .HasForeignKey("CHANGE_SHIFT_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("Nav_ImgFileID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ChangeShiftRecord"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD_PRE_USER", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", "Nav_ChangeShiftRecord") .WithMany("Nav_PreUsers") .HasForeignKey("CHANGE_SHIFT_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ChangeShiftRecord"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Team") .WithMany() .HasForeignKey("CLASS_TEAM_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_DepartmentPost") .WithMany() .HasForeignKey("DEPARTMENT_POST_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_Editor") .WithMany() .HasForeignKey("EDITOR_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Class"); b.Navigation("Nav_Department"); b.Navigation("Nav_DepartmentPost"); b.Navigation("Nav_Editor"); b.Navigation("Nav_Org"); b.Navigation("Nav_Team"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_FILE", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", "Nav_CurrentClassRecord") .WithMany("Nav_Files") .HasForeignKey("CURRENT_CLASS_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CurrentClassRecord"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_LABOUR_SUPPLY", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", "Nav_CurrentClassRecord") .WithMany("Nav_LabourSupplies") .HasForeignKey("CURRENT_CLASS_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_LABOUR_SUPPLY", "Nav_LabourSupply") .WithMany() .HasForeignKey("Nav_LabourSupplyID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CurrentClassRecord"); b.Navigation("Nav_LabourSupply"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD_USER", b => { b.HasOne("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", "Nav_CurrentClassRecord") .WithMany("Nav_Users") .HasForeignKey("CURRENT_CLASS_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CurrentClassRecord"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_LABOUR_SUPPLY", 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.FO.T_FO_PRE_OPER_SCH", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("LANUNCH_USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH", "Nav_PreOperSch") .WithMany("Nav_PreOperSchFile") .HasForeignKey("PRE_OPER_SCH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_PreOperSch"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH", "Nav_PreOperSch") .WithMany("Nav_PreOperSchUser") .HasForeignKey("PRE_OPER_SCH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_RealDepartmentPost") .WithMany() .HasForeignKey("REAL_DEPARTMENT_POST_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PreOperSch"); b.Navigation("Nav_RealDepartmentPost"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", "Nav_Class") .WithMany() .HasForeignKey("CLASS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Team") .WithMany() .HasForeignKey("TEAM_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Class"); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); b.Navigation("Nav_Team"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD", "Nav_PreShiftMeetingRecord") .WithMany("Nav_Files") .HasForeignKey("PRE_SHIFT_MEETING_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_PreShiftMeetingRecord"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD", "Nav_PreShiftMeetingRecord") .WithMany("Nav_Users") .HasForeignKey("PRE_SHIFT_MEETING_RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_RealDepartmentPost") .WithMany() .HasForeignKey("REAL_DEPARTMENT_POST_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_PreShiftMeetingRecord"); b.Navigation("Nav_RealDepartmentPost"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("NOTE_AKER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", "Nav_Taem") .WithMany() .HasForeignKey("TEAM_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Taem"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY", "Nav_TeamActivity") .WithMany("Nav_TeamActivityFile") .HasForeignKey("TEAM_ACTIVITY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_TeamActivity"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY", "Nav_TeamActivity") .WithMany("Nav_TeamActivityUser") .HasForeignKey("TEAM_ACTIVITY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TeamActivity"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ANALYSIS_PERSON", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", "Nav_LicenseAnalysis") .WithMany("Nav_AnalysisPerson") .HasForeignKey("LICENSE_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_LicenseAnalysis"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_ANALYSIS_FILE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", "Nav_CrucialTaskAnalysis") .WithMany("Nav_Files") .HasForeignKey("CRUCIAL_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CrucialTaskAnalysis"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_ANALYSIS_PERSON", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", "Nav_CrucialTaskAnalysis") .WithMany("Nav_CrucialAnalysisPerson") .HasForeignKey("CRUCIAL_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CrucialTaskAnalysis"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_OperationAnalyze") .WithMany() .HasForeignKey("OPERATION_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_OperationAnalyze"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", "Nav_CrucialTaskAnalysis") .WithMany("Nav_Details") .HasForeignKey("CRUCIAL_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CrucialTaskAnalysis"); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EDUCATION_MEASURES", 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.HM.T_HM_EMERGENCY_MEASURES", 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.HM.T_HM_ENGINEERING_MEASURES", 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.HM.T_HM_EQUIPMENT", 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.HM.T_HM_EVALUATE_C", 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.HM.T_HM_EVALUATE_E", 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.HM.T_HM_EVALUATE_HAZARD", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("Nav_AreaID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_LEVEL", "Nav_HazardLevel") .WithMany() .HasForeignKey("Nav_HazardLevelID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("Nav_IdentifyingID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OCCUPATIONAL_RISK", "Nav_OccupationalRisk") .WithMany() .HasForeignKey("Nav_OccupationalRiskID"); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_PersonLiable") .WithMany() .HasForeignKey("Nav_PersonLiableID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_HazardLevel"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OccupationalRisk"); b.Navigation("Nav_Org"); b.Navigation("Nav_PersonLiable"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_ENGINEERING_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ENGINEERING_MEASURES", "Nav_EngineeringMeasures") .WithMany() .HasForeignKey("Nav_EngineeringMeasuresID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", "Nav_EvaluationHazard") .WithMany("Nav_EvaluateHazardEngineeringMeasures") .HasForeignKey("Nav_EvaluationHazardID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EngineeringMeasures"); b.Navigation("Nav_EvaluationHazard"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_INDIVIDUAL_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", "Nav_EvaluationHazard") .WithMany("Nav_EvaluateHazardIndividualMeasures") .HasForeignKey("Nav_EvaluationHazardID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_INDIVIDUAL_MEASURES", "Nav_IndividualMeasures") .WithMany() .HasForeignKey("Nav_IndividualMeasuresID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationHazard"); b.Navigation("Nav_IndividualMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_MANAGEMENT_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", "Nav_EvaluationHazard") .WithMany("Nav_EvaluateHazardManagementMeasures") .HasForeignKey("Nav_EvaluationHazardID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", "Nav_ManagementMeasures") .WithMany() .HasForeignKey("Nav_ManagementMeasuresID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationHazard"); b.Navigation("Nav_ManagementMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD_MONITOR_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", "Nav_EvaluationHazard") .WithMany("Nav_EvaluateHazardMonitorMeasures") .HasForeignKey("Nav_EvaluationHazardID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MONITOR_MEASURES", "Nav_MonitorMeasures") .WithMany() .HasForeignKey("Nav_MonitorMeasuresID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationHazard"); b.Navigation("Nav_MonitorMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_L", 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.HM.T_HM_EVALUATE_LEVEL", 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.HM.T_HM_EVALUATE_REQUIREMENT", 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.HM.T_HM_EVALUATE_RESULT", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("INITIATING_DEPARTMENT") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_NoteTaker") .WithMany() .HasForeignKey("NOTE_TAKER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_REQUIREMENT", "Nav_Requirement") .WithMany() .HasForeignKey("REQUIREMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_NoteTaker"); b.Navigation("Nav_Org"); b.Navigation("Nav_Requirement"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_FILE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT", "Nav_EvaluateResult") .WithMany("Nav_Files") .HasForeignKey("EVALUATE_RESULT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluateResult"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT", "Nav_EvaluateResult") .WithMany("Nav_Hazards") .HasForeignKey("EVALUATE_RESULT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_LEVEL", "Nav_HazardLevel") .WithMany() .HasForeignKey("HAZARD_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OCCUPATIONAL_RISK", "Nav_OccupationalRisk") .WithMany() .HasForeignKey("OCCUPATIONALRISK_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_PersonLiable") .WithMany() .HasForeignKey("PERSON_LIABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Area"); b.Navigation("Nav_EvaluateResult"); b.Navigation("Nav_HazardLevel"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OccupationalRisk"); b.Navigation("Nav_Org"); b.Navigation("Nav_PersonLiable"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_EDUCATION_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EDUCATION_MEASURES", "Nav_EducationMeasures") .WithMany() .HasForeignKey("EDUCATION_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardEducationMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EducationMeasures"); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_EMERGENCY_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EMERGENCY_MEASURES", "Nav_EmergencyMeasures") .WithMany() .HasForeignKey("EMERGENCY_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardEmergencyMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EmergencyMeasures"); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_ENGINEERING_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ENGINEERING_MEASURES", "Nav_EngineeringMeasures") .WithMany() .HasForeignKey("ENGINEERING_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardEngineeringMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EngineeringMeasures"); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_INDIVIDUAL_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardIndividualMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_INDIVIDUAL_MEASURES", "Nav_IndividualMeasures") .WithMany() .HasForeignKey("INDIVIDUAL_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_IndividualMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_MANAGEMENT_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardManagementMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", "Nav_ManagementMeasures") .WithMany() .HasForeignKey("MANAGEMENT_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_ManagementMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD_MONITOR_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", "Nav_EvaluationResultHazard") .WithMany("Nav_EvaluateHazardMonitorMeasures") .HasForeignKey("EVALUATE_RESULT_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MONITOR_MEASURES", "Nav_MonitorMeasures") .WithMany() .HasForeignKey("MONITOR_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultHazard"); b.Navigation("Nav_MonitorMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_C", "Nav_EvaluateC") .WithMany() .HasForeignKey("EVALUATE_C_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_E", "Nav_EvaluateE") .WithMany() .HasForeignKey("EVALUATE_E_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_LEVEL", "Nav_EvaluateLevel") .WithMany() .HasForeignKey("EVALUATE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_L", "Nav_EvaluateL") .WithMany() .HasForeignKey("EVALUATE_L_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT", "Nav_EvaluateResult") .WithMany("Nav_Risks") .HasForeignKey("EVALUATE_RESULT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_PersonLiable") .WithMany() .HasForeignKey("PERSON_LIABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TYPE", "Nav_Type") .WithMany() .HasForeignKey("TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Area"); b.Navigation("Nav_EvaluateC"); b.Navigation("Nav_EvaluateE"); b.Navigation("Nav_EvaluateL"); b.Navigation("Nav_EvaluateLevel"); b.Navigation("Nav_EvaluateResult"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); b.Navigation("Nav_PersonLiable"); b.Navigation("Nav_Type"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EDUCATION_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EDUCATION_MEASURES", "Nav_EducationMeasures") .WithMany() .HasForeignKey("EDUCATION_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskEducationMeasures") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EducationMeasures"); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EMERGENCY_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EMERGENCY_MEASURES", "Nav_EmergencyMeasures") .WithMany() .HasForeignKey("EMERGENCY_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskEmergencyMeasures") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EmergencyMeasures"); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_ENGINEERING_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ENGINEERING_MEASURES", "Nav_EngineeringMeasures") .WithMany() .HasForeignKey("ENGINEERING_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskEngineeringMeasures") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EngineeringMeasures"); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_EQUIPMENT", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EQUIPMENT", "Nav_Equipment") .WithMany() .HasForeignKey("EQUIPMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskEquipment") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Equipment"); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_FACILITIES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskFacilities") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_FACILITIES", "Nav_Facilities") .WithMany() .HasForeignKey("FACILITIES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Facilities"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_INDIVIDUAL_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskIndividualMeasures") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_INDIVIDUAL_MEASURES", "Nav_IndividualMeasures") .WithMany() .HasForeignKey("INDIVIDUAL_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_IndividualMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_MANAGEMENT_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskManagementMeasures") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", "Nav_ManagementMeasures") .WithMany() .HasForeignKey("MANAGEMENT_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_ManagementMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK_WORKDUTY", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", "Nav_EvaluationResultRisk") .WithMany("Nav_EvaluateRiskWorkduty") .HasForeignKey("EVALUATION_RESULT_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Post") .WithMany() .HasForeignKey("WORKDUTY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationResultRisk"); b.Navigation("Nav_Org"); b.Navigation("Nav_Post"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_C", "Nav_EvaluateC") .WithMany() .HasForeignKey("EVALUATE_C_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_E", "Nav_EvaluateE") .WithMany() .HasForeignKey("EVALUATE_E_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_LEVEL", "Nav_EvaluateLevel") .WithMany() .HasForeignKey("EVALUATE_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_L", "Nav_EvaluateL") .WithMany() .HasForeignKey("EVALUATE_L_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_PersonLiable") .WithMany() .HasForeignKey("PERSON_LIABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TYPE", "Nav_Type") .WithMany() .HasForeignKey("TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Area"); b.Navigation("Nav_EvaluateC"); b.Navigation("Nav_EvaluateE"); b.Navigation("Nav_EvaluateL"); b.Navigation("Nav_EvaluateLevel"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); b.Navigation("Nav_PersonLiable"); b.Navigation("Nav_Type"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EDUCATION_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EDUCATION_MEASURES", "Nav_EducationMeasures") .WithMany() .HasForeignKey("EDUCATION_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskEducationMeasures") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EducationMeasures"); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EMERGENCY_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EMERGENCY_MEASURES", "Nav_EmergencyMeasures") .WithMany() .HasForeignKey("EMERGENCY_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskEmergencyMeasures") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EmergencyMeasures"); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_ENGINEERING_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ENGINEERING_MEASURES", "Nav_EngineeringMeasures") .WithMany() .HasForeignKey("ENGINEERING_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskEngineeringMeasures") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EngineeringMeasures"); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_EQUIPMENT", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EQUIPMENT", "Nav_Equipment") .WithMany() .HasForeignKey("EQUIPMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskEquipment") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Equipment"); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_FACILITIES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskFacilities") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_FACILITIES", "Nav_Facilities") .WithMany() .HasForeignKey("FACILITIES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Facilities"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_INDIVIDUAL_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskIndividualMeasures") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_INDIVIDUAL_MEASURES", "Nav_IndividualMeasures") .WithMany() .HasForeignKey("INDIVIDUAL_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_IndividualMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_MANAGEMENT_MEASURES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskManagementMeasures") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", "Nav_ManagementMeasures") .WithMany() .HasForeignKey("MANAGEMENT_MEASURES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_ManagementMeasures"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_EQUIPMENT", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EQUIPMENT", "Nav_Equipment") .WithMany() .HasForeignKey("EQUIPMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", "Nav_RiskRecordDetail") .WithMany("Nav_EvaluateRiskRecordEquipment") .HasForeignKey("RISK_RECORD_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Equipment"); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskRecordDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_FACILITIES", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_FACILITIES", "Nav_Facilities") .WithMany() .HasForeignKey("FACILITIES_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", "Nav_RiskRecordDetail") .WithMany("Nav_EvaluateRiskRecordFacilities") .HasForeignKey("RISK_RECORD_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Facilities"); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskRecordDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_RECORD_WORKDUTY", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", "Nav_RiskRecordDetail") .WithMany("Nav_EvaluateRiskRecordWorkduty") .HasForeignKey("RISK_RECORD_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Workduty") .WithMany() .HasForeignKey("WORKDUTY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskRecordDetail"); b.Navigation("Nav_Workduty"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK_WORKDUTY", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluationRisk") .WithMany("Nav_EvaluateRiskWorkduty") .HasForeignKey("EVALUATION_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Post") .WithMany() .HasForeignKey("POST_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationRisk"); b.Navigation("Nav_Org"); b.Navigation("Nav_Post"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_DETAIL_IDENTIFYING", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL", "Nav_Detail") .WithMany("Nav_Identifyings") .HasForeignKey("DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Detail"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_FILE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", "Nav_EvaluationPlan") .WithMany("Nav_Files") .HasForeignKey("EVALUATION_PLAN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationPlan"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_DeputyGroupLeader") .WithMany() .HasForeignKey("DEPUTY_GROUP_LEADER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_GroupLeader") .WithMany() .HasForeignKey("GROUP_LEADER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("INITIATING_DEPARTMENT") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_ReleaseUser") .WithMany() .HasForeignKey("RELEASE_USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_DeputyGroupLeader"); b.Navigation("Nav_GroupLeader"); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_Org"); b.Navigation("Nav_ReleaseUser"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_USER", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", "Nav_EvaluationPlan") .WithMany("Nav_Users") .HasForeignKey("EVALUATION_PLAN_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluationPlan"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FACILITIES", 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.HM.T_HM_FILE_PUBLISH", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", "Nav_CrucialTaskAnalysis") .WithMany() .HasForeignKey("CRUCIAL_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", "Nav_LicenseAnalysis") .WithMany() .HasForeignKey("LICENSE_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", "Nav_OrdinaryTaskAnalysis") .WithMany() .HasForeignKey("ORDINARY_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_CrucialTaskAnalysis"); b.Navigation("Nav_Department"); b.Navigation("Nav_LicenseAnalysis"); b.Navigation("Nav_OrdinaryTaskAnalysis"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FILE_PUBLISH_AREA", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_FILE_PUBLISH", "Nav_FilePublish") .WithMany("Nav_Area") .HasForeignKey("FILE_PUBLISH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_FilePublish"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_LEVEL", 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.HM.T_HM_HAZARD_RECORD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("Nav_CreateUserID"); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("Nav_DepartmentID"); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("Nav_InitiatingDepartmentID"); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_NoteTaker") .WithMany() .HasForeignKey("Nav_NoteTakerID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", "Nav_Task") .WithMany() .HasForeignKey("Nav_TaskID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_NoteTaker"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_AREA", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", "Nav_Record") .WithMany("Nav_Areas") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", "Nav_EvaluateHazard") .WithMany() .HasForeignKey("EVALUATE_HAZARD_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_LEVEL", "Nav_HazardLevel") .WithMany() .HasForeignKey("HAZARD_LEVEL_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OCCUPATIONAL_RISK", "Nav_OccupationalRisk") .WithMany() .HasForeignKey("OCCUPATIONALRISK_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_PersonLiable") .WithMany() .HasForeignKey("PERSON_LIABLE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", "Nav_HazardRecord") .WithMany("Nav_Details") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_EvaluateHazard"); b.Navigation("Nav_HazardLevel"); b.Navigation("Nav_HazardRecord"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OccupationalRisk"); b.Navigation("Nav_Org"); b.Navigation("Nav_PersonLiable"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", "Nav_Record") .WithMany("Nav_Files") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_IDENTIFYING", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", "Nav_Record") .WithMany("Nav_Identifyings") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Identifying"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", "Nav_Record") .WithMany("Nav_Users") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("INITIATING_DEPARTMENT") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("Nav_CreateUserID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_AREA", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", "Nav_Task") .WithMany("Nav_Areas") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("RECORD_USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", "Nav_Task") .WithMany("Nav_Detail") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL", "Nav_Task_Detail") .WithMany("Nav_Users") .HasForeignKey("TASK_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Task_Detail"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", "Nav_Task") .WithMany("Nav_Files") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_IDENTIFYING", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", "Nav_Task") .WithMany("Nav_Identifyings") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Identifying"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", 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.HM.T_HM_INDIVIDUAL_MEASURES", 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.HM.T_HM_JOBTASK_IDENTIFY", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", "Nav_JobtaskIdentify") .WithMany("Nav_Details") .HasForeignKey("JOBTASK_IDENTIFY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_JobtaskIdentify"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL_POST", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL", "Nav_Detail") .WithMany("Nav_DetailPost") .HasForeignKey("JOBTASK_IDENTIFY_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Post") .WithMany() .HasForeignKey("POST_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Detail"); b.Navigation("Nav_Org"); b.Navigation("Nav_Post"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", "Nav_JobtaskIdentify") .WithMany("Nav_Files") .HasForeignKey("JOBTASK_IDENTIFY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_JobtaskIdentify"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_USER", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", "Nav_JobtaskIdentify") .WithMany("Nav_IdentifyUser") .HasForeignKey("JOBTASK_IDENTIFY_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_JobtaskIdentify"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_OperationAnalyze") .WithMany() .HasForeignKey("OPERATION_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_OperationAnalyze"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", "Nav_LicenseAnalysis") .WithMany("Nav_Details") .HasForeignKey("LICENSE_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_LicenseAnalysis"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", "Nav_LicenseAnalysis") .WithMany("Nav_Files") .HasForeignKey("LICENSE_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_LicenseAnalysis"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_MANAGEMENT_MEASURES", 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.HM.T_HM_MONITOR_MEASURES", 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.HM.T_HM_NOTICE_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE", "Nav_NoticeRelease") .WithMany("Nav_Files") .HasForeignKey("NOTICE_RELEASE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_NoticeRelease"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_ReleaseUser") .WithMany() .HasForeignKey("RELEASE_USER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_ReleasDepartment") .WithMany() .HasForeignKey("RELEAS_DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE", "Nav_TaskAnalyze") .WithMany() .HasForeignKey("TASK_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_ReleasDepartment"); b.Navigation("Nav_ReleaseUser"); b.Navigation("Nav_TaskAnalyze"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE_DEPARTMENT", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE", "Nav_NoticeRelease") .WithMany("Nav_ReleaseRange") .HasForeignKey("NOTICE_RELEASE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_NoticeRelease"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OCCUPATIONAL_RISK", 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.HM.T_HM_OPERATION_INSTRUCTION_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany("Nav_Files") .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK_EVALUATE_RISK", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("EVALUATE_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany("Nav_OperationLinkEvaluateRisk") .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", 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.HM.T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", "Nav_TaskAnalyzeDetail") .WithMany() .HasForeignKey("Nav_TaskAnalyzeDetailID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyzeDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", "Nav_TaskAnalyzeDetail") .WithMany() .HasForeignKey("Nav_TaskAnalyzeDetailID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyzeDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", "Nav_TaskAnalyzeDetail") .WithMany() .HasForeignKey("Nav_TaskAnalyzeDetailID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyzeDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DEAL_MEASURE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany("Nav_DealMeasures") .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", "Nav_JobtaskIdentify") .WithMany() .HasForeignKey("JOBTASK_IDENTIFY_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_JobtaskIdentify"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E", "Nav_DistinguishAnalyzeE") .WithMany() .HasForeignKey("ANALYZE_E_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H", "Nav_DistinguishAnalyzeH") .WithMany() .HasForeignKey("ANALYZE_H_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L", "Nav_DistinguishAnalyzeL") .WithMany() .HasForeignKey("ANALYZE_L_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P", "Nav_DistinguishAnalyzeP") .WithMany() .HasForeignKey("ANALYZE_P_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R", "Nav_DistinguishAnalyzeR") .WithMany() .HasForeignKey("ANALYZE_R_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_DistinguishAnalyze") .WithMany("Nav_AnalyzeDetails") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_DistinguishAnalyze"); b.Navigation("Nav_DistinguishAnalyzeE"); b.Navigation("Nav_DistinguishAnalyzeH"); b.Navigation("Nav_DistinguishAnalyzeL"); b.Navigation("Nav_DistinguishAnalyzeP"); b.Navigation("Nav_DistinguishAnalyzeR"); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E", 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.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_DistinguishAnalyze") .WithMany("Nav_AnalyzeFiles") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_DistinguishAnalyze"); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H", 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.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L", 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.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P", 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.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R", 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.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_USER", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_DistinguishAnalyze") .WithMany("Nav_Users") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_DistinguishAnalyze"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("EVALUATE_RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", "Nav_OperationTaskDistinguish") .WithMany("Nav_DistinguishDetails") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", "Nav_Workduty") .WithMany() .HasForeignKey("WORKDUTY_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_WORK_TYPE", "Nav_WorkType") .WithMany() .HasForeignKey("WORK_TYPE_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_OperationTaskDistinguish"); b.Navigation("Nav_Org"); b.Navigation("Nav_Workduty"); b.Navigation("Nav_WorkType"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", "Nav_OperationTaskDistinguish") .WithMany("Nav_Files") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_OperationTaskDistinguish"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_USER", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", "Nav_OperationTaskDistinguish") .WithMany("Nav_Users") .HasForeignKey("OPERATION_TASK_DISTINGUISH_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_OperationTaskDistinguish"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_SAFE_CONFIRM", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany("Nav_SafeConfirms") .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_SAFE_MEASURE", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany("Nav_SafeMeasures") .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_ANALYSIS_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", "Nav_OrdinaryTaskAnalysis") .WithMany("Nav_Files") .HasForeignKey("ORDINARY_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_OrdinaryTaskAnalysis"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_ANALYSIS_PERSON", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", "Nav_OrdinaryTaskAnalysis") .WithMany("Nav_OrdinaryAnalysisPerson") .HasForeignKey("ORDINARY_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_OrdinaryTaskAnalysis"); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("CREATER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_OperationAnalyze") .WithMany() .HasForeignKey("OPERATION_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_Department"); b.Navigation("Nav_OperationAnalyze"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", "Nav_OrdinaryTaskAnalysis") .WithMany("Nav_Details") .HasForeignKey("ORDINARY_TASK_ANALYSIS_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_OrdinaryTaskAnalysis"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OTHER_APPROVE_LOG", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_REQUEST", 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.HM.T_HM_RISK_AREA", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", "Nav_Plan") .WithMany() .HasForeignKey("PLAN_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_Org"); b.Navigation("Nav_Plan"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_ChargePerson") .WithMany() .HasForeignKey("CHARGE_PERSON_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION", "Nav_RiskEvaluation") .WithMany("Nav_Details") .HasForeignKey("RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ChargePerson"); b.Navigation("Nav_Org"); b.Navigation("Nav_RiskEvaluation"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL_AREA", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL", "Nav_Detail") .WithMany("Nav_Areas") .HasForeignKey("DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Detail"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("INITIATING_DEPARTMENT") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_NoteTaker") .WithMany() .HasForeignKey("NOTE_TAKER_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_REQUEST", "Nav_Request") .WithMany() .HasForeignKey("REQUEST_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", "Nav_Task") .WithMany() .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_NoteTaker"); b.Navigation("Nav_Org"); b.Navigation("Nav_Request"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_AREA", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", "Nav_Record") .WithMany("Nav_Areas") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", "Nav_EvaluateRisk") .WithMany() .HasForeignKey("EVALUATE_RISK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_STEP", "Nav_OperationStep") .WithMany() .HasForeignKey("OPERATION_STEP_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", "Nav_Record") .WithMany("Nav_Details") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TYPE", "Nav_Type") .WithMany() .HasForeignKey("TYPE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_EvaluateRisk"); b.Navigation("Nav_Identifying"); b.Navigation("Nav_OperationStep"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); b.Navigation("Nav_Type"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", "Nav_Record") .WithMany("Nav_Files") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_IDENTIFYING", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", "Nav_Record") .WithMany("Nav_Identifyings") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Identifying"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_USER", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", "Nav_Record") .WithMany("Nav_Users") .HasForeignKey("RECORD_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Record"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_InitiatingDepartment") .WithMany() .HasForeignKey("INITIATING_DEPARTMENT") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_CreateUser") .WithMany() .HasForeignKey("Nav_CreateUserID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_REQUEST", "Nav_Request") .WithMany() .HasForeignKey("REQUEST_ID") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Nav_CreateUser"); b.Navigation("Nav_InitiatingDepartment"); b.Navigation("Nav_Org"); b.Navigation("Nav_Request"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_AREA", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", "Nav_Task") .WithMany("Nav_Areas") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_AREA", "Nav_Area") .WithMany() .HasForeignKey("AREA_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("RECORD_USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", "Nav_Task") .WithMany("Nav_Detail") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Area"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", "Nav_Task") .WithMany("Nav_Files") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_IDENTIFYING", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_IDENTIFYING", "Nav_Identifying") .WithMany() .HasForeignKey("IDENTIFYING_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", "Nav_Task") .WithMany("Nav_Identifyings") .HasForeignKey("TASK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Identifying"); b.Navigation("Nav_Org"); b.Navigation("Nav_Task"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_DETAIL", "Nav_Task_Detail") .WithMany("Nav_Users") .HasForeignKey("TASK_DETAIL_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_Task_Detail"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TYPE", 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.HM.T_HM_TASK_ANALYZE", b => { b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department") .WithMany() .HasForeignKey("DEPARTMENT_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", "Nav_DistinguishAnalyze") .WithMany() .HasForeignKey("OPERATION_TASK_DISTINGUISH_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Department"); b.Navigation("Nav_DistinguishAnalyze"); b.Navigation("Nav_Org"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", b => { b.HasOne("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", "Nav_OperationLink") .WithMany() .HasForeignKey("OPERATION_LINK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE", "Nav_TaskAnalyze") .WithMany("Nav_AnalyzeDetails") .HasForeignKey("TASK_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_OperationLink"); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyze"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_FILE", "Nav_File") .WithMany() .HasForeignKey("Nav_FileID"); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", "Nav_TaskAnalyzeDetail") .WithMany("Nav_TaskAnalyzeDetailFiles") .HasForeignKey("Nav_TaskAnalyzeDetailID"); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_File"); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyzeDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_USER", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE", "Nav_TaskAnalyze") .WithMany("Nav_Users") .HasForeignKey("TASK_ANALYZE_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User") .WithMany() .HasForeignKey("USER_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_Org"); b.Navigation("Nav_TaskAnalyze"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_WORK_TYPE", 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.PF.T_PF_QUESTION_UPLOAD_FILE", b => { b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile") .WithMany() .HasForeignKey("IMG_FILE_ID") .OnDelete(DeleteBehavior.Restrict); b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("ORG_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("APT.BaseData.Domain.Entities.T_PF_QUESTION_FEEDBACK", "Nav_QuestionFeedback") .WithMany("Nav_Files") .HasForeignKey("QUESTION_FEEDBACK_ID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Nav_ImgFile"); b.Navigation("Nav_Org"); b.Navigation("Nav_QuestionFeedback"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PICTURE", b => { b.Navigation("Nav_PictureFiles"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.BD.T_BD_PLACE", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_AUTO_PRINT_RECORD", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CALENDAR", b => { b.Navigation("Nav_CalendarClass"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_CLASS", b => { b.Navigation("Nav_ClassDetail"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_COST_CENTER", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", b => { b.Navigation("Nav_Children"); b.Navigation("Nav_DepartmentCalendarConfig"); b.Navigation("Nav_DepartmentScheduling"); b.Navigation("Nav_SafeUser"); b.Navigation("Nav_UserDeparts"); b.Navigation("Nav_UserList"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_CALENDAR_CONFIG", b => { b.Navigation("Nav_DepartmentCalendarConfigDetail"); b.Navigation("Nav_DepartmentCalendarConfigTeam"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT_SCHEDULING", b => { b.Navigation("Nav_DepartmentSchedulingDetail"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ENUM", b => { b.Navigation("Nav_EnumItems"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_EXT_CONN_CONFIG", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_HOLIDAY", b => { b.Navigation("Nav_HolidayDetails"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_IMPORT_CONFIG_DETAIL", b => { b.Navigation("Nav_Children"); b.Navigation("Nav_Fields"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_NOTIFICATION", b => { b.Navigation("Nav_Accepteds"); b.Navigation("Nav_Permits"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PANEL", b => { b.Navigation("Nav_PanelInfo"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_PERSON", b => { b.Navigation("Nav_TeamPersons"); b.Navigation("Nav_User"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE", b => { b.Navigation("Nav_MenuPermissions"); b.Navigation("Nav_Panels"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_GROUP", b => { b.Navigation("Nav_BelongRoles"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_ROLE_MENU_PERM", b => { b.Navigation("Nav_PermissionBtns"); b.Navigation("Nav_PermissionColumns"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_TEAM", b => { b.Navigation("Nav_TeamPersons"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER", b => { b.Navigation("Nav_BelongRoleGroups"); b.Navigation("Nav_BelongRoles"); b.Navigation("Nav_BelongUserGroups"); b.Navigation("Nav_UserPhotoFiles"); b.Navigation("Nav_UserSignFiles"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG", b => { b.Navigation("Nav_Edits"); b.Navigation("Nav_HiddenTables"); b.Navigation("Nav_Querys"); b.Navigation("Nav_Tabls"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_CUSTOM_CONFIG_H_TAB", b => { b.Navigation("Nav_HiddenColumns"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_EDIT", b => { b.Navigation("Nav_EditColumns"); b.Navigation("Nav_HiddenCols"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY", b => { b.Navigation("Nav_Fields"); b.Navigation("Nav_Groups"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_QUERY_GROUP", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_C_C_TABLE", b => { b.Navigation("Nav_Columns"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_GROUP", b => { b.Navigation("Nav_BelongRoleGroups"); b.Navigation("Nav_BelongRoles"); b.Navigation("Nav_BelongUserGroups"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.FM.T_FM_USER_POST", b => { b.Navigation("Nav_UserTests"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.NW.T_NW_ENTERPRISE", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_BILLING_RULE", b => { b.Navigation("Nav_Versions"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_MENU", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_NOTICE", b => { b.Navigation("Nav_NoticeDetails"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.OP.T_OP_TENANT", b => { b.Navigation("Nav_Domains"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_CODE", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.Platform.T_PF_DEFECT_GRADE", b => { b.Navigation("Nav_DefectCodes"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPMENU", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE", b => { b.Navigation("Nav_ApproveDetails"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPROVE_TEMP", b => { b.Navigation("Nav_ApproveTempDetails"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_CLIENT_MENU", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_COLUMN", b => { b.Navigation("Nav_Filters"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_DATA_CHANNEL", b => { b.Navigation("Nav_ClientScopes"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN", b => { b.Navigation("Nav_FillMaps"); b.Navigation("Nav_Filters"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_EDIT_COLUMN_FILL_MAP", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FILE", b => { b.Navigation("Nav_ImgFiles"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FLOW_INSTANCE", b => { b.Navigation("OperationHistorys"); b.Navigation("TransitionHistorys"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM", b => { b.Navigation("Nav_HomeCharts"); b.Navigation("Nav_HomeHmis"); b.Navigation("Nav_HomeRankings"); b.Navigation("Nav_HomeStatistics"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_CONFIG_VERSION", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_FORM_QUERY", b => { b.Navigation("Nav_Querys"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MENU", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_MQTT_CONFIG", b => { b.Navigation("Nav_MqttConfigTheme"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_CHART", b => { b.Navigation("Nav_Params"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_EDIT", b => { b.Navigation("Nav_Children"); b.Navigation("Nav_Columns"); b.Navigation("Nav_Panels"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TABLE", b => { b.Navigation("Nav_Btns"); b.Navigation("Nav_Children"); b.Navigation("Nav_Columns"); b.Navigation("Nav_Panels"); b.Navigation("Nav_TableParams"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PAGE_TREE", b => { b.Navigation("Nav_Columns"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PARAM_SCHEME", b => { b.Navigation("Nav_Details"); b.Navigation("Nav_PageEdits"); b.Navigation("Nav_PageTables"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_PIC_FILTER", b => { b.Navigation("Nav_PicFilterDetail"); }); modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_QUESTION_FEEDBACK", b => { b.Navigation("Nav_Files"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_FM_ORGANIZATION", b => { b.Navigation("Nav_Children"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT", b => { b.Navigation("Nav_ListContentAreas"); b.Navigation("Nav_ListContentCheckTypes"); b.Navigation("Nav_ListContentQuestions"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_CONTENT_CHECK_TYPE", b => { b.Navigation("Nav_ListContentCheckTypeLevels"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_PROJECT", b => { b.Navigation("Nav_ListCheckProjectProjectCategory"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_CHECK_TYPE", b => { b.Navigation("Nav_Children"); b.Navigation("Nav_ListCheckTypeLevel"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_ListCheckProject"); b.Navigation("Nav_ListCheckProjectCategory"); b.Navigation("Nav_ListCheckRiskArea"); b.Navigation("Nav_ListCheckUserSign"); b.Navigation("Nav_ListSafeCheckDetail"); }); modelBuilder.Entity("APT.MS.Domain.Entities.BS.T_BS_SAFE_CHECK_DETAIL", b => { b.Navigation("Nav_ListCheckDetailUser"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CHANGE_SHIFT_RECORD", b => { b.Navigation("Nav_AfterUsers"); b.Navigation("Nav_Files"); b.Navigation("Nav_PreUsers"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_CURRENT_CLASS_RECORD", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_LabourSupplies"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_OPER_SCH", b => { b.Navigation("Nav_PreOperSchFile"); b.Navigation("Nav_PreOperSchUser"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_PRE_SHIFT_MEETING_RECORD", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.FO.T_FO_TEAM_ACTIVITY", b => { b.Navigation("Nav_TeamActivityFile"); b.Navigation("Nav_TeamActivityUser"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_CRUCIAL_TASK_ANALYSIS", b => { b.Navigation("Nav_CrucialAnalysisPerson"); b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_HAZARD", b => { b.Navigation("Nav_EvaluateHazardEngineeringMeasures"); b.Navigation("Nav_EvaluateHazardIndividualMeasures"); b.Navigation("Nav_EvaluateHazardManagementMeasures"); b.Navigation("Nav_EvaluateHazardMonitorMeasures"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_Hazards"); b.Navigation("Nav_Risks"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_HAZARD", b => { b.Navigation("Nav_EvaluateHazardEducationMeasures"); b.Navigation("Nav_EvaluateHazardEmergencyMeasures"); b.Navigation("Nav_EvaluateHazardEngineeringMeasures"); b.Navigation("Nav_EvaluateHazardIndividualMeasures"); b.Navigation("Nav_EvaluateHazardManagementMeasures"); b.Navigation("Nav_EvaluateHazardMonitorMeasures"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RESULT_RISK", b => { b.Navigation("Nav_EvaluateRiskEducationMeasures"); b.Navigation("Nav_EvaluateRiskEmergencyMeasures"); b.Navigation("Nav_EvaluateRiskEngineeringMeasures"); b.Navigation("Nav_EvaluateRiskEquipment"); b.Navigation("Nav_EvaluateRiskFacilities"); b.Navigation("Nav_EvaluateRiskIndividualMeasures"); b.Navigation("Nav_EvaluateRiskManagementMeasures"); b.Navigation("Nav_EvaluateRiskWorkduty"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATE_RISK", b => { b.Navigation("Nav_EvaluateRiskEducationMeasures"); b.Navigation("Nav_EvaluateRiskEmergencyMeasures"); b.Navigation("Nav_EvaluateRiskEngineeringMeasures"); b.Navigation("Nav_EvaluateRiskEquipment"); b.Navigation("Nav_EvaluateRiskFacilities"); b.Navigation("Nav_EvaluateRiskIndividualMeasures"); b.Navigation("Nav_EvaluateRiskManagementMeasures"); b.Navigation("Nav_EvaluateRiskWorkduty"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_EVALUATION_PLAN", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_FILE_PUBLISH", b => { b.Navigation("Nav_Area"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_RECORD", b => { b.Navigation("Nav_Areas"); b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); b.Navigation("Nav_Identifyings"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK", b => { b.Navigation("Nav_Areas"); b.Navigation("Nav_Detail"); b.Navigation("Nav_Files"); b.Navigation("Nav_Identifyings"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_HAZARD_TASK_DETAIL", b => { b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY", b => { b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); b.Navigation("Nav_IdentifyUser"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_JOBTASK_IDENTIFY_DETAIL", b => { b.Navigation("Nav_DetailPost"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_LICENSE_ANALYSIS", b => { b.Navigation("Nav_AnalysisPerson"); b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_NOTICE_RELEASE", b => { b.Navigation("Nav_Files"); b.Navigation("Nav_ReleaseRange"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_LINK", b => { b.Navigation("Nav_DealMeasures"); b.Navigation("Nav_Files"); b.Navigation("Nav_OperationLinkEvaluateRisk"); b.Navigation("Nav_SafeConfirms"); b.Navigation("Nav_SafeMeasures"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH", b => { b.Navigation("Nav_DistinguishDetails"); b.Navigation("Nav_Files"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE", b => { b.Navigation("Nav_AnalyzeDetails"); b.Navigation("Nav_AnalyzeFiles"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_ORDINARY_TASK_ANALYSIS", b => { b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); b.Navigation("Nav_OrdinaryAnalysisPerson"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION", b => { b.Navigation("Nav_Details"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_EVALUATION_DETAIL", b => { b.Navigation("Nav_Areas"); b.Navigation("Nav_Identifyings"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD", b => { b.Navigation("Nav_Areas"); b.Navigation("Nav_Details"); b.Navigation("Nav_Files"); b.Navigation("Nav_Identifyings"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_RECORD_DETAIL", b => { b.Navigation("Nav_EvaluateRiskRecordEquipment"); b.Navigation("Nav_EvaluateRiskRecordFacilities"); b.Navigation("Nav_EvaluateRiskRecordWorkduty"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK", b => { b.Navigation("Nav_Areas"); b.Navigation("Nav_Detail"); b.Navigation("Nav_Files"); b.Navigation("Nav_Identifyings"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_RISK_TASK_DETAIL", b => { b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE", b => { b.Navigation("Nav_AnalyzeDetails"); b.Navigation("Nav_Users"); }); modelBuilder.Entity("APT.MS.Domain.Entities.HM.T_HM_TASK_ANALYZE_DETAIL", b => { b.Navigation("Nav_TaskAnalyzeDetailFiles"); }); #pragma warning restore 612, 618 } } }