From 78b5e0a2e4c48239983e236c48f8c0b897d69f9e Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 09 九月 2025 09:38:00 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 174 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 128 insertions(+), 46 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index 7198f9d..8926aca 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -22,6 +22,68 @@ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + modelBuilder.Entity("FlexJobApi.Core.CodeUrl", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + 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<DateTime?>("ExpiredTime") + .HasColumnType("datetime2"); + + b.Property<bool>("IsDeleted") + .HasColumnType("bit"); + + b.Property<string>("ParamValue1") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue2") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue3") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue4") + .HasColumnType("nvarchar(max)"); + + b.Property<string>("ParamValue5") + .HasColumnType("nvarchar(max)"); + + b.Property<int>("Scene") + .HasColumnType("int"); + + b.Property<int>("Sort") + .HasColumnType("int"); + + b.Property<string>("TraceId") + .HasColumnType("nvarchar(max)"); + + b.Property<DateTimeOffset?>("UpdatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("UpdatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("Url") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("CodeUrl"); + }); + modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => { b.Property<Guid>("Id") @@ -98,7 +160,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("ContractTemplate", (string)null); + b.ToTable("ContractTemplate"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplateValue", b => @@ -159,7 +221,7 @@ b.HasIndex("TemplateId"); - b.ToTable("ContractTemplateValue", (string)null); + b.ToTable("ContractTemplateValue"); }); modelBuilder.Entity("FlexJobApi.Core.Department", b => @@ -217,7 +279,7 @@ b.HasIndex("ParentId"); - b.ToTable("Department", (string)null); + b.ToTable("Department"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b => @@ -268,7 +330,7 @@ b.HasKey("Id"); - b.ToTable("DictionaryCategory", (string)null); + b.ToTable("DictionaryCategory"); }); modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b => @@ -349,7 +411,7 @@ b.HasIndex("ParentId"); - b.ToTable("DictionaryData", (string)null); + b.ToTable("DictionaryData"); }); modelBuilder.Entity("FlexJobApi.Core.ElectronSignSetting", b => @@ -399,7 +461,7 @@ b.HasKey("Id"); - b.ToTable("ElectronSignSetting", (string)null); + b.ToTable("ElectronSignSetting"); }); modelBuilder.Entity("FlexJobApi.Core.Enterprise", b => @@ -527,7 +589,7 @@ b.HasIndex("ProvinceCode"); - b.ToTable("Enterprise", (string)null); + b.ToTable("Enterprise"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b => @@ -626,7 +688,7 @@ b.HasKey("Id"); - b.ToTable("EnterpriseAuth", (string)null); + b.ToTable("EnterpriseAuth"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseCost", b => @@ -680,7 +742,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("EnterpriseCost", (string)null); + b.ToTable("EnterpriseCost"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b => @@ -723,7 +785,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("EnterpriseElectronSignSetting", (string)null); + b.ToTable("EnterpriseElectronSignSetting"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b => @@ -823,7 +885,7 @@ b.HasIndex("UserId"); - b.ToTable("EnterpriseEmployee", (string)null); + b.ToTable("EnterpriseEmployee"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b => @@ -892,7 +954,7 @@ b.HasIndex("EnterpriseEmployeeId"); - b.ToTable("EnterpriseEmployeeContract", (string)null); + b.ToTable("EnterpriseEmployeeContract"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => @@ -949,7 +1011,7 @@ b.HasIndex("UserId"); - b.ToTable("EnterpriseUserCollect", (string)null); + b.ToTable("EnterpriseUserCollect"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWallet", b => @@ -960,6 +1022,9 @@ b.Property<int>("Access") .HasColumnType("int"); + + b.Property<string>("Account") + .HasColumnType("nvarchar(max)"); b.Property<string>("AccountBookId") .HasColumnType("nvarchar(max)"); @@ -1018,6 +1083,9 @@ b.Property<bool>("IsDeleted") .HasColumnType("bit"); + b.Property<string>("MerchantId") + .HasColumnType("nvarchar(max)"); + b.Property<string>("PersonalProductCode") .HasColumnType("nvarchar(max)"); @@ -1067,7 +1135,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("EnterpriseWallet", (string)null); + b.ToTable("EnterpriseWallet"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrder", b => @@ -1164,7 +1232,7 @@ b.HasIndex("WalletId"); - b.ToTable("EnterpriseWalletExpandindirectOrder", (string)null); + b.ToTable("EnterpriseWalletExpandindirectOrder"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletExpandindirectOrderFile", b => @@ -1210,7 +1278,7 @@ b.HasIndex("OrderId"); - b.ToTable("EnterpriseWalletExpandindirectOrderFile", (string)null); + b.ToTable("EnterpriseWalletExpandindirectOrderFile"); }); modelBuilder.Entity("FlexJobApi.Core.EnterpriseWalletTransaction", b => @@ -1279,6 +1347,12 @@ 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)"); @@ -1299,6 +1373,9 @@ b.Property<string>("SubStatus") .HasColumnType("nvarchar(max)"); + + b.Property<Guid?>("TaskUserId") + .HasColumnType("uniqueidentifier"); b.Property<string>("TraceId") .HasColumnType("nvarchar(max)"); @@ -1323,9 +1400,11 @@ b.HasKey("Id"); + b.HasIndex("TaskUserId"); + b.HasIndex("WalletId"); - b.ToTable("EnterpriseWalletTransaction", (string)null); + b.ToTable("EnterpriseWalletTransaction"); }); modelBuilder.Entity("FlexJobApi.Core.Menu", b => @@ -1413,7 +1492,7 @@ b.HasIndex("ParentId"); - b.ToTable("Menu", (string)null); + b.ToTable("Menu"); }); modelBuilder.Entity("FlexJobApi.Core.Resource", b => @@ -1513,7 +1592,7 @@ b.HasKey("Id"); - b.ToTable("Resource", (string)null); + b.ToTable("Resource"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => @@ -1571,7 +1650,7 @@ b.HasKey("Id"); - b.ToTable("Role", (string)null); + b.ToTable("Role"); }); modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b => @@ -1616,7 +1695,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleMenu", (string)null); + b.ToTable("RoleMenu"); }); modelBuilder.Entity("FlexJobApi.Core.RoleResource", b => @@ -1664,7 +1743,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleResource", (string)null); + b.ToTable("RoleResource"); }); modelBuilder.Entity("FlexJobApi.Core.ScheduleJobDetail", b => @@ -1723,7 +1802,7 @@ b.HasKey("Id"); - b.ToTable("ScheduleJobDetail", (string)null); + b.ToTable("ScheduleJobDetail"); }); modelBuilder.Entity("FlexJobApi.Core.ScheduleJobTrigger", b => @@ -1824,7 +1903,7 @@ b.HasKey("Id"); - b.ToTable("ScheduleJobTrigger", (string)null); + b.ToTable("ScheduleJobTrigger"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => @@ -1974,7 +2053,7 @@ b.HasIndex("ProvinceCode"); - b.ToTable("TaskInfo", (string)null); + b.ToTable("TaskInfo"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b => @@ -2020,7 +2099,7 @@ b.HasIndex("TaskInfoId"); - b.ToTable("TaskInfoBenefit", (string)null); + b.ToTable("TaskInfoBenefit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b => @@ -2066,7 +2145,7 @@ b.HasIndex("TypeCode"); - b.ToTable("TaskInfoCredentialLimit", (string)null); + b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => @@ -2162,7 +2241,7 @@ b.HasIndex("TaskInfoId"); - b.ToTable("TaskInfoUser", (string)null); + b.ToTable("TaskInfoUser"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => @@ -2211,7 +2290,7 @@ b.HasIndex("TaskInfoUserId"); - b.ToTable("TaskInfoUserSubmit", (string)null); + b.ToTable("TaskInfoUserSubmit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", b => @@ -2255,7 +2334,7 @@ b.HasIndex("SubmitId"); - b.ToTable("TaskInfoUserSubmitFile", (string)null); + b.ToTable("TaskInfoUserSubmitFile"); }); modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b => @@ -2300,7 +2379,7 @@ b.HasIndex("UserId"); - b.ToTable("TaskUserCollect", (string)null); + b.ToTable("TaskUserCollect"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => @@ -2447,7 +2526,7 @@ b.HasIndex("ProvinceCode"); - b.ToTable("User", (string)null); + b.ToTable("User"); b.HasData( new @@ -2548,7 +2627,7 @@ b.HasKey("Id"); - b.ToTable("UserAuth", (string)null); + b.ToTable("UserAuth"); }); modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b => @@ -2556,6 +2635,9 @@ b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + + b.Property<int>("Access") + .HasColumnType("int"); b.Property<string>("Bank") .HasColumnType("nvarchar(max)"); @@ -2576,14 +2658,8 @@ b.Property<Guid?>("CreatedUserId") .HasColumnType("uniqueidentifier"); - b.Property<string>("Identity") - .HasColumnType("nvarchar(max)"); - b.Property<bool>("IsDeleted") .HasColumnType("bit"); - - b.Property<string>("Name") - .HasColumnType("nvarchar(max)"); b.Property<string>("PhoneNumber") .HasMaxLength(11) @@ -2608,7 +2684,7 @@ b.HasIndex("UserId"); - b.ToTable("UserBankCard", (string)null); + b.ToTable("UserBankCard"); }); modelBuilder.Entity("FlexJobApi.Core.UserCredential", b => @@ -2676,7 +2752,7 @@ b.HasIndex("UserId"); - b.ToTable("UserCredential", (string)null); + b.ToTable("UserCredential"); }); modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b => @@ -2721,7 +2797,7 @@ b.HasIndex("UserId"); - b.ToTable("UserDepartment", (string)null); + b.ToTable("UserDepartment"); }); modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b => @@ -2767,7 +2843,7 @@ b.HasIndex("UserId"); - b.ToTable("UserExpectJob", (string)null); + b.ToTable("UserExpectJob"); }); modelBuilder.Entity("FlexJobApi.Core.UserManageIndustrialPark", b => @@ -2810,7 +2886,7 @@ b.HasIndex("UserId"); - b.ToTable("UserManageIndustrialPark", (string)null); + b.ToTable("UserManageIndustrialPark"); }); modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b => @@ -2853,7 +2929,7 @@ b.HasIndex("UserId"); - b.ToTable("UserPhoto", (string)null); + b.ToTable("UserPhoto"); }); modelBuilder.Entity("FlexJobApi.Core.UserRole", b => @@ -2898,7 +2974,7 @@ b.HasIndex("UserId"); - b.ToTable("UserRole", (string)null); + b.ToTable("UserRole"); }); modelBuilder.Entity("FlexJobApi.Core.ContractTemplate", b => @@ -3117,12 +3193,18 @@ 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"); }); -- Gitblit v1.9.1