zhengyiming
4 天以前 844ef8147c4e61c22d5aa40deab4b026638e1781
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -22,16 +22,13 @@
            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
            modelBuilder.Entity("FlexJobApi.Core.AlipayFundExpandindirectOrder", b =>
            modelBuilder.Entity("FlexJobApi.Core.CodeUrl", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("BizScene")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("BizType")
                    b.Property<string>("Code")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CreatedEnterpriseId")
@@ -43,56 +40,17 @@
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("Identity")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("IdentityType")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("ExpiredTime")
                        .HasColumnType("datetime2");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("Name")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("OrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("OriginalOrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("OutBizNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ProductCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("RiskReviewRemark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneDirections")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneImage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneQualificationImage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Sites")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Scene")
                        .HasColumnType("int");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<string>("Status")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TaskFinishTime")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
@@ -103,9 +61,12 @@
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("Url")
                        .HasColumnType("nvarchar(max)");
                    b.HasKey("Id");
                    b.ToTable("AlipayFundExpandindirectOrder");
                    b.ToTable("CodeUrl", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b =>
@@ -184,7 +145,7 @@
                    b.HasIndex("EnterpriseId");
                    b.ToTable("ContractTemplate");
                    b.ToTable("ContractTemplate", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b =>
@@ -245,7 +206,7 @@
                    b.HasIndex("TemplateId");
                    b.ToTable("ContractTemplateValue");
                    b.ToTable("ContractTemplateValue", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
@@ -303,7 +264,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("Department");
                    b.ToTable("Department", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b =>
@@ -354,7 +315,7 @@
                    b.HasKey("Id");
                    b.ToTable("DictionaryCategory");
                    b.ToTable("DictionaryCategory", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
@@ -435,7 +396,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("DictionaryData");
                    b.ToTable("DictionaryData", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ElectronSignSetting", b =>
@@ -485,7 +446,7 @@
                    b.HasKey("Id");
                    b.ToTable("ElectronSignSetting");
                    b.ToTable("ElectronSignSetting", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
@@ -613,7 +574,7 @@
                    b.HasIndex("ProvinceCode");
                    b.ToTable("Enterprise");
                    b.ToTable("Enterprise", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b =>
@@ -712,7 +673,7 @@
                    b.HasKey("Id");
                    b.ToTable("EnterpriseAuth");
                    b.ToTable("EnterpriseAuth", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseCost", b =>
@@ -766,7 +727,7 @@
                    b.HasIndex("EnterpriseId");
                    b.ToTable("EnterpriseCost");
                    b.ToTable("EnterpriseCost", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b =>
@@ -809,7 +770,7 @@
                    b.HasIndex("EnterpriseId");
                    b.ToTable("EnterpriseElectronSignSetting");
                    b.ToTable("EnterpriseElectronSignSetting", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b =>
@@ -909,7 +870,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("EnterpriseEmployee");
                    b.ToTable("EnterpriseEmployee", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b =>
@@ -978,7 +939,7 @@
                    b.HasIndex("EnterpriseEmployeeId");
                    b.ToTable("EnterpriseEmployeeContract");
                    b.ToTable("EnterpriseEmployeeContract", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b =>
@@ -1035,7 +996,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("EnterpriseUserCollect");
                    b.ToTable("EnterpriseUserCollect", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWallet", b =>
@@ -1047,10 +1008,40 @@
                    b.Property<int>("Access")
                        .HasColumnType("int");
                    b.Property<string>("Account")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("AccountBookId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int?>("AccountBookStatus")
                        .HasColumnType("int");
                    b.Property<string>("AgreementNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("AlipayLogonId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<decimal>("Balance")
                        .HasColumnType("decimal(18,2)");
                    b.Property<string>("BankAccName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("CardBank")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("CardBranch")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("CardDeposit")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("CardLocation")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("CardNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Code")
@@ -1076,6 +1067,9 @@
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("MerchantId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("PersonalProductCode")
                        .HasColumnType("nvarchar(max)");
@@ -1126,7 +1120,276 @@
                    b.HasIndex("EnterpriseId");
                    b.ToTable("EnterpriseWallet");
                    b.ToTable("EnterpriseWallet", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("BizScene")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("BizType")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("Identity")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("IdentityType")
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("Name")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("OrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("OrderStatus")
                        .HasColumnType("int");
                    b.Property<string>("OriginalOrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("OutBizNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ProductCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("RiskReviewRemark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Scene")
                        .HasColumnType("int");
                    b.Property<string>("SceneCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneDirections")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneImage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SceneQualificationImage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Sites")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<string>("Status")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("TaskFinishTime")
                        .HasColumnType("datetime2");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid>("WalletId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.HasIndex("WalletId");
                    b.ToTable("EnterpriseWalletExpandindirectOrder", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrderFile", 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<string>("File")
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<Guid>("OrderId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    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.HasKey("Id");
                    b.HasIndex("OrderId");
                    b.ToTable("EnterpriseWalletExpandindirectOrderFile", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<decimal>("Amount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<DateTime?>("ArrivalTimeEnd")
                        .HasColumnType("datetime2");
                    b.Property<decimal>("Balance")
                        .HasColumnType("decimal(18,2)");
                    b.Property<string>("BizScene")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Code")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("ErrorCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("FailInstErrorCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("FailInstName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("FailInstReason")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("FailReason")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("InflowSettleSerialNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("Link")
                        .HasColumnType("nvarchar(max)");
                    b.Property<decimal?>("OrderFee")
                        .HasColumnType("decimal(18,2)");
                    b.Property<string>("OrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("PayFundOrderId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ProductCode")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiveAccount")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiveName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiverOpenId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiverUserId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SettleSerialNo")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<string>("Status")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SubStatus")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("TaskUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("TransDate")
                        .HasColumnType("datetime2");
                    b.Property<int>("TransactionStatus")
                        .HasColumnType("int");
                    b.Property<int>("Type")
                        .HasColumnType("int");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid>("WalletId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.HasIndex("TaskUserId");
                    b.HasIndex("WalletId");
                    b.ToTable("EnterpriseWalletTransaction", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -1214,7 +1477,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("Menu");
                    b.ToTable("Menu", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
@@ -1314,7 +1577,7 @@
                    b.HasKey("Id");
                    b.ToTable("Resource");
                    b.ToTable("Resource", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.Role", b =>
@@ -1372,7 +1635,7 @@
                    b.HasKey("Id");
                    b.ToTable("Role");
                    b.ToTable("Role", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
@@ -1417,7 +1680,7 @@
                    b.HasIndex("RoleId");
                    b.ToTable("RoleMenu");
                    b.ToTable("RoleMenu", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
@@ -1465,7 +1728,7 @@
                    b.HasIndex("RoleId");
                    b.ToTable("RoleResource");
                    b.ToTable("RoleResource", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ScheduleJobDetail", b =>
@@ -1524,7 +1787,7 @@
                    b.HasKey("Id");
                    b.ToTable("ScheduleJobDetail");
                    b.ToTable("ScheduleJobDetail", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ScheduleJobTrigger", b =>
@@ -1625,7 +1888,7 @@
                    b.HasKey("Id");
                    b.ToTable("ScheduleJobTrigger");
                    b.ToTable("ScheduleJobTrigger", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
@@ -1633,6 +1896,9 @@
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<decimal?>("ActualSettlementAmount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<string>("AddressDetail")
                        .HasColumnType("nvarchar(max)");
@@ -1716,14 +1982,38 @@
                    b.Property<decimal>("ServiceFee")
                        .HasColumnType("decimal(18,2)");
                    b.Property<decimal?>("SettlementAmount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<int>("SettlementCycle")
                        .HasColumnType("int");
                    b.Property<string>("SettlementOrderName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int?>("SettlementOrderStatus")
                        .HasColumnType("int");
                    b.Property<DateTime?>("SettlementOrderTime")
                        .HasColumnType("datetime2");
                    b.Property<string>("SettlementOrderUrl")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SettlementRemark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("SettlementStartTime")
                        .HasColumnType("datetime2");
                    b.Property<int?>("SettlementStatus")
                        .HasColumnType("int");
                    b.Property<DateTime?>("SettlementTime")
                        .HasColumnType("datetime2");
                    b.Property<int>("SettlementUserCount")
                        .HasColumnType("int");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
@@ -1748,7 +2038,7 @@
                    b.HasIndex("ProvinceCode");
                    b.ToTable("TaskInfo");
                    b.ToTable("TaskInfo", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
@@ -1794,7 +2084,7 @@
                    b.HasIndex("TaskInfoId");
                    b.ToTable("TaskInfoBenefit");
                    b.ToTable("TaskInfoBenefit", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
@@ -1840,7 +2130,7 @@
                    b.HasIndex("TypeCode");
                    b.ToTable("TaskInfoCredentialLimit");
                    b.ToTable("TaskInfoCredentialLimit", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
@@ -1849,11 +2139,20 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<decimal?>("ActualSettlementAmount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<int?>("ArrangeStatus")
                        .HasColumnType("int");
                    b.Property<DateTime?>("ArrangeTime")
                        .HasColumnType("datetime2");
                    b.Property<string>("Bank")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("BankBranch")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int?>("CheckReceiveStatus")
                        .HasColumnType("int");
@@ -1888,6 +2187,24 @@
                    b.Property<DateTime?>("LastSubmitTime")
                        .HasColumnType("datetime2");
                    b.Property<string>("ReceiveAccount")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ReceiveName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<decimal?>("SettlementAmount")
                        .HasColumnType("decimal(18,2)");
                    b.Property<string>("SettlementRemark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int?>("SettlementStatus")
                        .HasColumnType("int");
                    b.Property<DateTime?>("SettlementTime")
                        .HasColumnType("datetime2");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
@@ -1909,7 +2226,7 @@
                    b.HasIndex("TaskInfoId");
                    b.ToTable("TaskInfoUser");
                    b.ToTable("TaskInfoUser", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b =>
@@ -1958,7 +2275,7 @@
                    b.HasIndex("TaskInfoUserId");
                    b.ToTable("TaskInfoUserSubmit");
                    b.ToTable("TaskInfoUserSubmit", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", b =>
@@ -2002,7 +2319,7 @@
                    b.HasIndex("SubmitId");
                    b.ToTable("TaskInfoUserSubmitFile");
                    b.ToTable("TaskInfoUserSubmitFile", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b =>
@@ -2047,7 +2364,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("TaskUserCollect");
                    b.ToTable("TaskUserCollect", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.User", b =>
@@ -2194,7 +2511,7 @@
                    b.HasIndex("ProvinceCode");
                    b.ToTable("User");
                    b.ToTable("User", (string)null);
                    b.HasData(
                        new
@@ -2295,7 +2612,7 @@
                    b.HasKey("Id");
                    b.ToTable("UserAuth");
                    b.ToTable("UserAuth", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b =>
@@ -2304,13 +2621,16 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<int>("Access")
                        .HasColumnType("int");
                    b.Property<string>("Bank")
                        .IsRequired()
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)");
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("BankBranch")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Code")
                        .IsRequired()
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)");
@@ -2327,7 +2647,6 @@
                        .HasColumnType("bit");
                    b.Property<string>("PhoneNumber")
                        .IsRequired()
                        .HasMaxLength(11)
                        .HasColumnType("nvarchar(11)");
@@ -2350,7 +2669,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserBankCard");
                    b.ToTable("UserBankCard", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserCredential", b =>
@@ -2418,7 +2737,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserCredential");
                    b.ToTable("UserCredential", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b =>
@@ -2463,7 +2782,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserDepartment");
                    b.ToTable("UserDepartment", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b =>
@@ -2509,7 +2828,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserExpectJob");
                    b.ToTable("UserExpectJob", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserManageIndustrialPark", b =>
@@ -2552,7 +2871,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserManageIndustrialPark");
                    b.ToTable("UserManageIndustrialPark", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b =>
@@ -2595,7 +2914,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserPhoto");
                    b.ToTable("UserPhoto", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.UserRole", b =>
@@ -2640,7 +2959,7 @@
                    b.HasIndex("UserId");
                    b.ToTable("UserRole");
                    b.ToTable("UserRole", (string)null);
                });
            modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b =>
@@ -2833,6 +3152,45 @@
                        .IsRequired();
                    b.Navigation("Enterprise");
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b =>
                {
                    b.HasOne("FlexJobApi.Core.EnterpriseWallet", "Wallet")
                        .WithMany()
                        .HasForeignKey("WalletId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Wallet");
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrderFile", b =>
                {
                    b.HasOne("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", "Order")
                        .WithMany("Files")
                        .HasForeignKey("OrderId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Order");
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b =>
                {
                    b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskUser")
                        .WithMany()
                        .HasForeignKey("TaskUserId");
                    b.HasOne("FlexJobApi.Core.EnterpriseWallet", "Wallet")
                        .WithMany()
                        .HasForeignKey("WalletId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("TaskUser");
                    b.Navigation("Wallet");
                });
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -3207,6 +3565,11 @@
                    b.Navigation("TaskInfoUsers");
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b =>
                {
                    b.Navigation("Files");
                });
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.Navigation("Children");