sunpengfei
2025-08-05 a89531d2e96dbd59f998ee0fcbaa17c4ca5ed1ff
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -85,7 +85,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("Department", null, t =>
                    b.ToTable("Department", t =>
                        {
                            t.HasComment("部门");
                        });
@@ -141,7 +141,7 @@
                    b.HasKey("Id");
                    b.ToTable("DictionaryCategory", null, t =>
                    b.ToTable("DictionaryCategory", t =>
                        {
                            t.HasComment("字典类别");
                        });
@@ -227,7 +227,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("DictionaryData", null, t =>
                    b.ToTable("DictionaryData", t =>
                        {
                            t.HasComment("字典数据");
                        });
@@ -350,7 +350,7 @@
                    b.HasIndex("LicenseImageId");
                    b.ToTable("Enterprise", null, t =>
                    b.ToTable("Enterprise", t =>
                        {
                            t.HasComment("企业");
                        });
@@ -441,7 +441,7 @@
                    b.HasKey("Id");
                    b.ToTable("FileStore", null, t =>
                    b.ToTable("FileStore", t =>
                        {
                            t.HasComment("文件存储");
                        });
@@ -497,7 +497,7 @@
                    b.HasIndex("StoreId");
                    b.ToTable("FileVirtualPath", null, t =>
                    b.ToTable("FileVirtualPath", t =>
                        {
                            t.HasComment("文件虚拟路径");
                        });
@@ -606,7 +606,7 @@
                    b.HasIndex("ParentId");
                    b.ToTable("Menu", null, t =>
                    b.ToTable("Menu", t =>
                        {
                            t.HasComment("菜单");
                        });
@@ -618,10 +618,19 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("ActionName")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("委托名称");
                    b.Property<string>("Code")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("编号");
                    b.Property<int>("Controller")
                        .HasColumnType("int")
                        .HasComment("控制器");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
@@ -647,10 +656,20 @@
                        .HasColumnType("nvarchar(max)")
                        .HasComment("名称");
                    b.Property<string>("RequestTypeFullName")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("请求类型全名");
                    b.Property<string>("RequestTypeName")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("请求类型名称");
                    b.Property<string>("ResponseTypeFullName")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("响应类型全名");
                    b.Property<string>("ResponseTypeName")
                        .IsRequired()
@@ -661,11 +680,6 @@
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("路由");
                    b.Property<string>("Service")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("微服务");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -684,7 +698,7 @@
                    b.HasKey("Id");
                    b.ToTable("Resource", null, t =>
                    b.ToTable("Resource", t =>
                        {
                            t.HasComment("资源");
                        });
@@ -707,6 +721,10 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<int>("DataPower")
                        .HasColumnType("int")
                        .HasComment("数据权限");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
@@ -720,6 +738,10 @@
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)")
                        .HasComment("名称");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("备注");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -742,7 +764,7 @@
                    b.HasKey("Id");
                    b.ToTable("Role", null, t =>
                    b.ToTable("Role", t =>
                        {
                            t.HasComment("角色");
                        });
@@ -794,7 +816,7 @@
                    b.HasIndex("RoleId");
                    b.ToTable("RoleMenu", null, t =>
                    b.ToTable("RoleMenu", t =>
                        {
                            t.HasComment("角色菜单");
                        });
@@ -850,7 +872,7 @@
                    b.HasIndex("RoleId");
                    b.ToTable("RoleResource", null, t =>
                    b.ToTable("RoleResource", t =>
                        {
                            t.HasComment("角色资源");
                        });
@@ -943,7 +965,7 @@
                    b.HasIndex("EnterpriseId");
                    b.ToTable("TaskInfo", null, t =>
                    b.ToTable("TaskInfo", t =>
                        {
                            t.HasComment("任务信息");
                        });
@@ -998,7 +1020,7 @@
                    b.HasIndex("BenefitId1");
                    b.ToTable("TaskInfoBenefit", null, t =>
                    b.ToTable("TaskInfoBenefit", t =>
                        {
                            t.HasComment("任务福利");
                        });
@@ -1050,7 +1072,7 @@
                    b.HasIndex("TypeId");
                    b.ToTable("TaskInfoCredentialLimit", (string)null);
                    b.ToTable("TaskInfoCredentialLimit");
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
@@ -1115,7 +1137,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("TaskInfoUser", null, t =>
                    b.ToTable("TaskInfoUser", t =>
                        {
                            t.HasComment("任务用户信息");
                        });
@@ -1221,7 +1243,7 @@
                    b.HasIndex("IdentityImgId");
                    b.ToTable("UserAuth", null, t =>
                    b.ToTable("UserAuth", t =>
                        {
                            t.HasComment("用户");
                        });
@@ -1290,9 +1312,17 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("身份Id");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("备注");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
                        .HasComment("排序");
                    b.Property<int>("Status")
                        .HasColumnType("int")
                        .HasComment("状态");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)")
@@ -1342,7 +1372,7 @@
                    b.HasIndex("UserAuthId");
                    b.ToTable("UserInfo", null, t =>
                    b.ToTable("UserInfo", t =>
                        {
                            t.HasComment("用户信息");
                        });
@@ -1355,6 +1385,7 @@
                            IsDeleted = false,
                            Level = 999,
                            Sort = 0,
                            Status = 0,
                            Type = 100,
                            UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
                        });
@@ -1418,7 +1449,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoBankCard", null, t =>
                    b.ToTable("UserInfoBankCard", t =>
                        {
                            t.HasComment("用户银行卡信息");
                        });
@@ -1504,7 +1535,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoCredential", null, t =>
                    b.ToTable("UserInfoCredential", t =>
                        {
                            t.HasComment("用户信息资格证书");
                        });
@@ -1556,7 +1587,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoDepartment", null, t =>
                    b.ToTable("UserInfoDepartment", t =>
                        {
                            t.HasComment("用户信息部门");
                        });
@@ -1608,7 +1639,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoExpectJob", null, t =>
                    b.ToTable("UserInfoExpectJob", t =>
                        {
                            t.HasComment("用户信息期望岗位");
                        });
@@ -1660,7 +1691,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoPhoto", null, t =>
                    b.ToTable("UserInfoPhoto", t =>
                        {
                            t.HasComment("用户信息生活照");
                        });
@@ -1712,7 +1743,7 @@
                    b.HasIndex("UserInfoId");
                    b.ToTable("UserInfoRole", null, t =>
                    b.ToTable("UserInfoRole", t =>
                        {
                            t.HasComment("用户信息角色");
                        });
@@ -1727,7 +1758,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.Department", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Enterprise");
@@ -1744,7 +1775,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Category");
@@ -1787,7 +1818,7 @@
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.HasOne("FlexJobApi.Core.Menu", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Parent");
@@ -2069,7 +2100,7 @@
            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
                {
                    b.HasOne("FlexJobApi.Core.Role", "Role")
                        .WithMany()
                        .WithMany("UserInfoRoles")
                        .HasForeignKey("RoleId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
@@ -2087,12 +2118,12 @@
            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
                {
                    b.Navigation("Childrens");
                    b.Navigation("Children");
                });
            modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
                {
                    b.Navigation("Childrens");
                    b.Navigation("Children");
                });
            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
@@ -2104,7 +2135,7 @@
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.Navigation("Childrens");
                    b.Navigation("Children");
                });
            modelBuilder.Entity("FlexJobApi.Core.Role", b =>
@@ -2112,6 +2143,8 @@
                    b.Navigation("RoleMenus");
                    b.Navigation("RoleResources");
                    b.Navigation("UserInfoRoles");
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>