563 lines
20 KiB
C#
563 lines
20 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
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<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClassTime")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("Nav_OrgID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("Score")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<string>("TeacherName")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("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<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("Brand")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("Model")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("Nav_OrgID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int?>("Number")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<decimal>("Price")
|
|||
|
|
.HasColumnType("numeric");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("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<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("Country")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("FirstName")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<string>("LastName")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("Nav_OrgID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("Nav_OrgID");
|
|||
|
|
|
|||
|
|
b.ToTable("APT_Test_User");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("APT.Domain.TestNoneBaseModel", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<string>("ID")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.ToTable("TestNoneBaseModel");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("APT.Infrastructure.Core.DataUpdateRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<int>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("integer")
|
|||
|
|
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DataID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<string>("EntityFullName")
|
|||
|
|
.HasColumnType("character varying(200)")
|
|||
|
|
.HasMaxLength(200);
|
|||
|
|
|
|||
|
|
b.Property<string>("EntityName")
|
|||
|
|
.HasColumnType("character varying(50)")
|
|||
|
|
.HasMaxLength(50);
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("Nav_OrgID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TargetDepartmentID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("UpdateFiled")
|
|||
|
|
.HasColumnType("character varying(2000)")
|
|||
|
|
.HasMaxLength(2000);
|
|||
|
|
|
|||
|
|
b.Property<int>("UpdateType")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.HasKey("ID");
|
|||
|
|
|
|||
|
|
b.HasIndex("Nav_OrgID");
|
|||
|
|
|
|||
|
|
b.ToTable("DataUpdateRecord");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("APT.Infrastructure.Core.T_FM_ORGANIZATION", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("CODE")
|
|||
|
|
.HasColumnType("character varying(100)")
|
|||
|
|
.HasMaxLength(100);
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("DESC")
|
|||
|
|
.HasColumnType("character varying(400)")
|
|||
|
|
.HasMaxLength(400);
|
|||
|
|
|
|||
|
|
b.Property<int>("ENABLE_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_LEAF")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("NAME")
|
|||
|
|
.HasColumnType("character varying(200)")
|
|||
|
|
.HasMaxLength(200);
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("PARENT_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("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<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("CODE_TYPE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CREATER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("DATE_VALUE")
|
|||
|
|
.HasColumnType("character varying(30)")
|
|||
|
|
.HasMaxLength(30);
|
|||
|
|
|
|||
|
|
b.Property<int>("ENTITY_ORG_TPYE")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FLOW_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_SEND_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<int>("FLOW_STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("FORM_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IS_DELETED")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("MODIFIER_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("MODIFY_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<int>("NUM")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ORG_ID")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("RELEASE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<int>("ROW_VERSION")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<string>("SERIAL")
|
|||
|
|
.HasColumnType("character varying(50)")
|
|||
|
|
.HasMaxLength(50);
|
|||
|
|
|
|||
|
|
b.Property<int>("STATUS")
|
|||
|
|
.HasColumnType("integer");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("TAKE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("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<Guid>("ID")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("APT_Test_CourseID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("APT_Test_PhoneID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("APT_Test_UserID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("CODE")
|
|||
|
|
.HasColumnType("character varying(60)")
|
|||
|
|
.HasMaxLength(60);
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("CREATE_TIME")
|
|||
|
|
.HasColumnType("timestamp without time zone");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ENTITY_ID")
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<string>("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
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|