sunpengfei
2025-08-21 5454e326a76e695ba4a51d5994c88ef7ded76efc
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -22,6 +22,139 @@
            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<int?>("Access")
                        .HasColumnType("int");
                    b.Property<string>("Code")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("CompletedTime")
                        .HasColumnType("datetime2");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("ElectronSignContractTemplateId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid>("EnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("File")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<bool>("IsDisabled")
                        .HasColumnType("bit");
                    b.Property<string>("Name")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<int>("Status")
                        .HasColumnType("int");
                    b.Property<string>("TemplateEditData")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TemplateId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TemplateJsonData")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.HasIndex("EnterpriseId");
                    b.ToTable("ContractTemplate");
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("Label")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Name")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Recorder")
                        .HasColumnType("int");
                    b.Property<bool>("Required")
                        .HasColumnType("bit");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<Guid>("TemplateId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Type")
                        .HasColumnType("int");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<int?>("UserType")
                        .HasColumnType("int");
                    b.HasKey("Id");
                    b.HasIndex("TemplateId");
                    b.ToTable("ContractTemplateValue");
                });
            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
                {
                    b.Property<Guid>("Id")
@@ -371,6 +504,9 @@
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("ElectronSignEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("EnterpriseName")
                        .IsRequired()
                        .HasMaxLength(128)
@@ -695,8 +831,8 @@
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Controller")
                        .HasColumnType("int");
                    b.Property<string>("ControllerName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ControllerSummary")
                        .HasColumnType("nvarchar(max)");
@@ -749,9 +885,6 @@
                    b.Property<string>("RouteArea")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Service")
                        .HasColumnType("int");
                    b.Property<string>("ServiceName")
                        .HasColumnType("nvarchar(max)");
@@ -1593,9 +1726,6 @@
                    b.Property<string>("ProvinceCode")
                        .HasColumnType("nvarchar(128)");
                    b.Property<int?>("RealAccess")
                        .HasColumnType("int");
                    b.Property<int?>("RealMethod")
                        .HasColumnType("int");
@@ -1679,12 +1809,18 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<int?>("Age")
                        .HasColumnType("int");
                    b.Property<string>("BankCard")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)");
                    b.Property<string>("BankCardImg")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("Birthday")
                        .HasColumnType("datetime2");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
@@ -1694,6 +1830,15 @@
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("ElectronSignUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("FaceRealUrl")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int?>("Gender")
                        .HasColumnType("int");
                    b.Property<string>("Identity")
                        .HasColumnType("nvarchar(max)");
@@ -1715,6 +1860,15 @@
                    b.Property<string>("PhoneNumber")
                        .HasMaxLength(11)
                        .HasColumnType("nvarchar(11)");
                    b.Property<int?>("RealAccess")
                        .HasColumnType("int");
                    b.Property<string>("RealFailMessage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("RealStatus")
                        .HasColumnType("int");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
@@ -2076,6 +2230,28 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserRole");
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b =>
                {
                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
                        .WithMany("ContractTemplates")
                        .HasForeignKey("EnterpriseId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Enterprise");
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b =>
                {
                    b.HasOne("FlexJobApi.Core.ContractTemplate", "Template")
                        .WithMany("Values")
                        .HasForeignKey("TemplateId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Template");
                });
            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
@@ -2523,6 +2699,11 @@
                    b.Navigation("User");
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b =>
                {
                    b.Navigation("Values");
                });
            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
                {
                    b.Navigation("Children");
@@ -2535,6 +2716,8 @@
            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
                {
                    b.Navigation("ContractTemplates");
                    b.Navigation("Departments");
                    b.Navigation("EnterpriseAuth");