// using System; using APT.Migrations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace APT.Migrations.Migrations { [DbContext(typeof(MigrationContext))] partial class MigrationContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) .HasAnnotation("ProductVersion", "3.1.2") .HasAnnotation("Relational:MaxIdentifierLength", 63); modelBuilder.Entity("APT.Domain.APT_Test_Course", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("ClassTime") .HasColumnType("text"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("Name") .HasColumnType("text"); b.Property("Nav_OrgID") .HasColumnType("uuid"); b.Property("ORG_ID") .HasColumnType("uuid"); b.Property("Score") .HasColumnType("integer"); b.Property("TeacherName") .HasColumnType("text"); b.Property("UserID") .HasColumnType("uuid"); b.HasKey("ID"); b.HasIndex("Nav_OrgID"); b.HasIndex("UserID"); b.ToTable("APT_Test_Course"); }); modelBuilder.Entity("APT.Domain.APT_Test_Phone", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Brand") .HasColumnType("text"); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("Model") .HasColumnType("text"); b.Property("Nav_OrgID") .HasColumnType("uuid"); b.Property("Number") .HasColumnType("integer"); b.Property("ORG_ID") .HasColumnType("uuid"); b.Property("Price") .HasColumnType("numeric"); b.Property("TestUser_ID") .HasColumnType("uuid"); b.HasKey("ID"); b.HasIndex("Nav_OrgID"); b.HasIndex("TestUser_ID"); b.ToTable("APT_Test_Phone"); }); modelBuilder.Entity("APT.Domain.APT_Test_User", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("Country") .HasColumnType("text"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("FirstName") .HasColumnType("text"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("LastName") .HasColumnType("text"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("Nav_OrgID") .HasColumnType("uuid"); b.Property("ORG_ID") .HasColumnType("uuid"); b.HasKey("ID"); b.HasIndex("Nav_OrgID"); b.ToTable("APT_Test_User"); }); modelBuilder.Entity("APT.Domain.TestNoneBaseModel", b => { b.Property("ID") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.HasKey("ID"); b.ToTable("TestNoneBaseModel"); }); modelBuilder.Entity("APT.Infrastructure.Core.DataUpdateRecord", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("DataID") .HasColumnType("uuid"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("EntityFullName") .HasColumnType("character varying(200)") .HasMaxLength(200); b.Property("EntityName") .HasColumnType("character varying(50)") .HasMaxLength(50); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("Nav_OrgID") .HasColumnType("uuid"); b.Property("ORG_ID") .HasColumnType("uuid"); b.Property("TargetDepartmentID") .HasColumnType("uuid"); b.Property("UpdateFiled") .HasColumnType("character varying(2000)") .HasMaxLength(2000); b.Property("UpdateType") .HasColumnType("integer"); b.HasKey("ID"); b.HasIndex("Nav_OrgID"); b.ToTable("DataUpdateRecord"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_FM_ORGANIZATION", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CODE") .HasColumnType("character varying(100)") .HasMaxLength(100); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("DESC") .HasColumnType("character varying(400)") .HasMaxLength(400); b.Property("ENABLE_STATUS") .HasColumnType("integer"); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("IS_LEAF") .HasColumnType("boolean"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("NAME") .HasColumnType("character varying(200)") .HasMaxLength(200); b.Property("ORG_ID") .HasColumnType("uuid"); b.Property("PARENT_ID") .HasColumnType("uuid"); b.Property("TEXT") .HasColumnType("character varying(50)") .HasMaxLength(50); b.HasKey("ID"); b.HasIndex("ORG_ID"); b.ToTable("T_FM_ORGANIZATION"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_PF_CODE_RULE_SERIAL", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CODE_TYPE") .HasColumnType("integer"); b.Property("CREATER_ID") .HasColumnType("uuid"); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("DATE_VALUE") .HasColumnType("character varying(30)") .HasMaxLength(30); b.Property("ENTITY_ORG_TPYE") .HasColumnType("integer"); b.Property("FLOW_ID") .HasColumnType("uuid"); b.Property("FLOW_SEND_STATUS") .HasColumnType("integer"); b.Property("FLOW_STATUS") .HasColumnType("integer"); b.Property("FORM_ID") .HasColumnType("uuid"); b.Property("IS_DELETED") .HasColumnType("boolean"); b.Property("MODIFIER_ID") .HasColumnType("uuid"); b.Property("MODIFY_TIME") .HasColumnType("timestamp without time zone"); b.Property("NUM") .HasColumnType("integer"); b.Property("ORG_ID") .IsRequired() .HasColumnType("uuid"); b.Property("RELEASE_TIME") .HasColumnType("timestamp without time zone"); b.Property("ROW_VERSION") .HasColumnType("integer"); b.Property("SERIAL") .HasColumnType("character varying(50)") .HasMaxLength(50); b.Property("STATUS") .HasColumnType("integer"); b.Property("TAKE_TIME") .HasColumnType("timestamp without time zone"); b.Property("USE_TIME") .HasColumnType("timestamp without time zone"); 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("uuid"); b.Property("APT_Test_CourseID") .HasColumnType("uuid"); b.Property("APT_Test_PhoneID") .HasColumnType("uuid"); b.Property("APT_Test_UserID") .HasColumnType("uuid"); b.Property("CODE") .HasColumnType("character varying(60)") .HasMaxLength(60); b.Property("CREATE_TIME") .HasColumnType("timestamp without time zone"); b.Property("ENTITY_ID") .HasColumnType("uuid"); b.Property("VALUE") .HasColumnType("character varying(600)") .HasMaxLength(600); b.HasKey("ID"); b.HasIndex("APT_Test_CourseID"); b.HasIndex("APT_Test_PhoneID"); b.HasIndex("APT_Test_UserID"); b.ToTable("T_PF_PARAM"); }); modelBuilder.Entity("APT.Domain.APT_Test_Course", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("Nav_OrgID"); b.HasOne("APT.Domain.APT_Test_User", "TestUser") .WithMany("Courses") .HasForeignKey("UserID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("APT.Domain.APT_Test_Phone", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("Nav_OrgID"); b.HasOne("APT.Domain.APT_Test_User", "Nav_TestUser") .WithMany() .HasForeignKey("TestUser_ID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("APT.Domain.APT_Test_User", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("Nav_OrgID"); }); modelBuilder.Entity("APT.Infrastructure.Core.DataUpdateRecord", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany() .HasForeignKey("Nav_OrgID"); }); modelBuilder.Entity("APT.Infrastructure.Core.T_FM_ORGANIZATION", b => { b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org") .WithMany("Fm_Organizations") .HasForeignKey("ORG_ID"); }); 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.Cascade) .IsRequired(); }); modelBuilder.Entity("APT.Infrastructure.Core.T_PF_PARAM", b => { b.HasOne("APT.Domain.APT_Test_Course", null) .WithMany("Nav_SysParams") .HasForeignKey("APT_Test_CourseID"); b.HasOne("APT.Domain.APT_Test_Phone", null) .WithMany("Nav_SysParams") .HasForeignKey("APT_Test_PhoneID"); b.HasOne("APT.Domain.APT_Test_User", null) .WithMany("Nav_SysParams") .HasForeignKey("APT_Test_UserID"); }); #pragma warning restore 612, 618 } } }