sunpengfei
2025-08-06 c97916f276a328fa70696a8582dc0c23144424f9
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -124,6 +124,10 @@
                        .HasColumnType("nvarchar(128)")
                        .HasComment("名称");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("备注");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
                        .HasComment("排序");
@@ -198,6 +202,10 @@
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<bool>("IsDisabled")
                        .HasColumnType("bit")
                        .HasComment("是否禁用");
                    b.Property<Guid?>("ParentId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("上级Id");
@@ -239,14 +247,123 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("BankBranchName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("BankCard")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("法人或经办人银行卡号");
                    b.Property<Guid?>("BankCardImgId")
                    b.Property<string>("BankName")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CityId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("ContactEmail")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ContactPhoneNumber")
                        .HasMaxLength(11)
                        .HasColumnType("nvarchar(11)");
                    b.Property<string>("Contacts")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("联系人");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("法人或经办人银行卡照片Id");
                        .HasComment("创建操作人");
                    b.Property<Guid>("EnterpriseAuthId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("IndustryTypeId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<bool>("IsCheckedBankCard")
                        .HasColumnType("bit");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<string>("MainBusiness")
                        .HasColumnType("nvarchar(max)");
                    b.Property<decimal?>("MergeSignCost")
                        .HasColumnType("decimal(18,2)");
                    b.Property<int?>("PayAccess")
                        .HasColumnType("int");
                    b.Property<Guid?>("ProvinceId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<int?>("RealAccess")
                        .HasColumnType("int")
                        .HasComment("实名通道");
                    b.Property<decimal?>("RealVerifyCost")
                        .HasColumnType("decimal(18,2)");
                    b.Property<decimal?>("SignCost")
                        .HasColumnType("decimal(18,2)");
                    b.Property<int?>("SmsAccess")
                        .HasColumnType("int");
                    b.Property<decimal>("SmsCost")
                        .HasColumnType("decimal(18,2)");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
                        .HasComment("排序");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("跟踪Id");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("最后更新操作人");
                    b.HasKey("Id");
                    b.HasIndex("CityId");
                    b.HasIndex("EnterpriseAuthId");
                    b.HasIndex("IndustryTypeId");
                    b.HasIndex("ProvinceId");
                    b.ToTable("Enterprise", t =>
                        {
                            t.HasComment("企业");
                        });
                });
            modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("BankCard")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)");
                    b.Property<string>("BankCardImg")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
@@ -258,74 +375,60 @@
                    b.Property<string>("EnterpriseName")
                        .IsRequired()
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)")
                        .HasComment("企业全称");
                        .HasColumnType("nvarchar(128)");
                    b.Property<int?>("EnterpriseRealMethod")
                        .HasColumnType("int")
                        .HasComment("企业认证方式");
                        .HasColumnType("int");
                    b.Property<string>("Identity")
                        .HasMaxLength(18)
                        .HasColumnType("nvarchar(18)")
                        .HasComment("法人或经办人身份证号");
                        .HasColumnType("nvarchar(18)");
                    b.Property<Guid?>("IdentityBackImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("法人或经办人身份证国徽面Id");
                    b.Property<string>("IdentityBackImg")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("IdentityImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("法人或经办人身份证人像面Id");
                    b.Property<string>("IdentityImg")
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<bool>("IsReal")
                        .HasColumnType("bit")
                        .HasComment("是否实名");
                        .HasColumnType("bit");
                    b.Property<string>("LegalIdentity")
                        .HasMaxLength(18)
                        .HasColumnType("nvarchar(18)");
                    b.Property<string>("LegalPerson")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("法人姓名");
                        .HasColumnType("nvarchar(32)");
                    b.Property<Guid?>("LicenseImageId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("营业执照照片Id");
                    b.Property<string>("LicenseImage")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("Name")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("法人或经办人姓名");
                        .HasColumnType("nvarchar(32)");
                    b.Property<int?>("PersonalRealMethod")
                        .HasColumnType("int")
                        .HasComment("法人或经办人实名方式");
                        .HasColumnType("int");
                    b.Property<string>("PhoneNumber")
                        .HasMaxLength(11)
                        .HasColumnType("nvarchar(11)")
                        .HasComment("法人或经办人手机号");
                        .HasColumnType("nvarchar(11)");
                    b.Property<bool?>("Proxy")
                        .HasColumnType("bit")
                        .HasComment("是否委托经办人");
                        .HasColumnType("bit");
                    b.Property<string>("ProxyPowerAttorneyUrl")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("企业授权书");
                    b.Property<int?>("RealAccess")
                        .HasColumnType("int")
                        .HasComment("实名通道");
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("SocietyCreditCode")
                        .IsRequired()
                        .HasMaxLength(18)
                        .HasColumnType("nvarchar(18)")
                        .HasComment("统一社会信用代码");
                        .HasColumnType("nvarchar(18)");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -344,163 +447,7 @@
                    b.HasKey("Id");
                    b.HasIndex("IdentityBackImgId");
                    b.HasIndex("IdentityImgId");
                    b.HasIndex("LicenseImageId");
                    b.ToTable("Enterprise", t =>
                        {
                            t.HasComment("企业");
                        });
                });
            modelBuilder.Entity("FlexJobApi.Core.FileStore", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("AbsolutePath")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("绝对路径");
                    b.Property<int>("Access")
                        .HasColumnType("int")
                        .HasComment("通道");
                    b.Property<string>("ContentType")
                        .IsRequired()
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)")
                        .HasComment("内容类型");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<string>("Extension")
                        .IsRequired()
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("扩展名");
                    b.Property<int>("FileType")
                        .HasColumnType("int")
                        .HasComment("文件类型");
                    b.Property<string>("Hash")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("哈希");
                    b.Property<int?>("ImageHeight")
                        .HasColumnType("int")
                        .HasComment("高度(像素)");
                    b.Property<int?>("ImageWidth")
                        .HasColumnType("int")
                        .HasComment("宽度(像素)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<long>("Length")
                        .HasColumnType("bigint")
                        .HasComment("文件大小(字节)");
                    b.Property<string>("Name")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("名称");
                    b.Property<string>("RelativePath")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("相对路径");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
                        .HasComment("排序");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("跟踪Id");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("最后更新操作人");
                    b.HasKey("Id");
                    b.ToTable("FileStore", t =>
                        {
                            t.HasComment("文件存储");
                        });
                });
            modelBuilder.Entity("FlexJobApi.Core.FileVirtualPath", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<string>("Name")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("名称");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
                        .HasComment("排序");
                    b.Property<Guid>("StoreId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("文件存储Id");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("跟踪Id");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("最后更新操作人");
                    b.Property<string>("VirtualPath")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("虚拟路径");
                    b.HasKey("Id");
                    b.HasIndex("StoreId");
                    b.ToTable("FileVirtualPath", t =>
                        {
                            t.HasComment("文件虚拟路径");
                        });
                    b.ToTable("EnterpriseAuth");
                });
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -618,10 +565,34 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("ActionName")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("委托名称");
                    b.Property<string>("ActionSummary")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("委托摘要");
                    b.Property<bool>("AllowAnonymous")
                        .HasColumnType("bit")
                        .HasComment("忽略权限");
                    b.Property<string>("ApplicationName")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("应用名称");
                    b.Property<string>("Code")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)")
                        .HasComment("编号");
                    b.Property<int>("Controller")
                        .HasColumnType("int")
                        .HasComment("控制器");
                    b.Property<string>("ControllerSummary")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("控制器摘要");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
@@ -629,6 +600,10 @@
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<string>("DynamicAssemblyName")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("动态程序集名称");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
@@ -647,10 +622,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()
@@ -662,10 +647,17 @@
                        .HasColumnType("nvarchar(max)")
                        .HasComment("路由");
                    b.Property<string>("Service")
                        .IsRequired()
                    b.Property<string>("RouteArea")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("微服务");
                        .HasComment("路由区域");
                    b.Property<int>("Service")
                        .HasColumnType("int")
                        .HasComment("服务");
                    b.Property<string>("ServiceName")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("服务名称");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -707,9 +699,17 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<int>("DataPower")
                        .HasColumnType("int")
                        .HasComment("数据权限");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<bool>("IsDisabled")
                        .HasColumnType("bit")
                        .HasComment("是否禁用");
                    b.Property<int>("MinLevel")
                        .HasColumnType("int")
@@ -720,6 +720,10 @@
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)")
                        .HasComment("名称");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("备注");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -813,7 +817,7 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<int?>("DataPower")
                    b.Property<int>("DataPower")
                        .HasColumnType("int")
                        .HasComment("数据权限");
@@ -821,9 +825,9 @@
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<Guid>("MenuId")
                    b.Property<Guid>("ResourceId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("菜单Id");
                        .HasComment("资源Id");
                    b.Property<Guid>("RoleId")
                        .HasColumnType("uniqueidentifier")
@@ -846,7 +850,7 @@
                    b.HasKey("Id");
                    b.HasIndex("MenuId");
                    b.HasIndex("ResourceId");
                    b.HasIndex("RoleId");
@@ -1127,18 +1131,14 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("AvatarId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("头像Id");
                    b.Property<string>("BankCard")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("银行卡号");
                    b.Property<Guid?>("BankCardImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("银行卡照片Id");
                    b.Property<string>("BankCardImg")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("银行卡照片");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
@@ -1151,13 +1151,13 @@
                        .HasColumnType("nvarchar(max)")
                        .HasComment("身份证号");
                    b.Property<Guid?>("IdentityBackImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("身份证国徽面Id");
                    b.Property<string>("IdentityBackImg")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("身份证国徽面");
                    b.Property<Guid?>("IdentityImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("身份证人像面Id");
                    b.Property<string>("IdentityImg")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("身份证人像面");
                    b.Property<bool>("IsCheckPhoneNumber")
                        .HasColumnType("bit")
@@ -1213,14 +1213,6 @@
                    b.HasKey("Id");
                    b.HasIndex("AvatarId");
                    b.HasIndex("BankCardImgId");
                    b.HasIndex("IdentityBackImgId");
                    b.HasIndex("IdentityImgId");
                    b.ToTable("UserAuth", t =>
                        {
                            t.HasComment("用户");
@@ -1235,8 +1227,9 @@
                            IsDeleted = false,
                            IsReal = false,
                            Name = "管理员",
                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                            Sort = 0,
                            UserName = "admin"
                            UserName = "system"
                        });
                });
@@ -1245,6 +1238,9 @@
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("Avatar")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CityId")
                        .HasColumnType("uniqueidentifier")
@@ -1289,9 +1285,20 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("身份Id");
                    b.Property<Guid?>("ProvinceId")
                        .HasColumnType("uniqueidentifier");
                    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)")
@@ -1339,6 +1346,8 @@
                    b.HasIndex("PersonalIdentityId");
                    b.HasIndex("ProvinceId");
                    b.HasIndex("UserAuthId");
                    b.ToTable("UserInfo", t =>
@@ -1354,6 +1363,7 @@
                            IsDeleted = false,
                            Level = 999,
                            Sort = 0,
                            Status = 0,
                            Type = 100,
                            UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
                        });
@@ -1429,9 +1439,9 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("BackImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("证书反面照片Id");
                    b.Property<string>("BackImg")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("证书反面照片");
                    b.Property<string>("Code")
                        .IsRequired()
@@ -1450,9 +1460,9 @@
                        .HasColumnType("datetime2")
                        .HasComment("结束日期");
                    b.Property<Guid>("ImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("证书正面照片Id");
                    b.Property<string>("Img")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("证书正面照片");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
@@ -1494,10 +1504,6 @@
                        .HasComment("用户信息Id");
                    b.HasKey("Id");
                    b.HasIndex("BackImgId");
                    b.HasIndex("ImgId");
                    b.HasIndex("TypeId");
@@ -1626,9 +1632,9 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid>("ImgId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("照片Id");
                    b.Property<string>("Img")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("照片");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
@@ -1654,8 +1660,6 @@
                        .HasComment("用户信息Id");
                    b.HasKey("Id");
                    b.HasIndex("ImgId");
                    b.HasIndex("UserInfoId");
@@ -1726,7 +1730,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.Department", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Enterprise");
@@ -1743,7 +1747,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Category");
@@ -1753,40 +1757,37 @@
            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
                {
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "IdentityBackImg")
                    b.HasOne("FlexJobApi.Core.DictionaryData", "City")
                        .WithMany()
                        .HasForeignKey("IdentityBackImgId");
                        .HasForeignKey("CityId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "IdentityImg")
                    b.HasOne("FlexJobApi.Core.EnterpriseAuth", "EnterpriseAuth")
                        .WithMany()
                        .HasForeignKey("IdentityImgId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "LicenseImage")
                        .WithMany()
                        .HasForeignKey("LicenseImageId");
                    b.Navigation("IdentityBackImg");
                    b.Navigation("IdentityImg");
                    b.Navigation("LicenseImage");
                });
            modelBuilder.Entity("FlexJobApi.Core.FileVirtualPath", b =>
                {
                    b.HasOne("FlexJobApi.Core.FileStore", "Store")
                        .WithMany()
                        .HasForeignKey("StoreId")
                        .HasForeignKey("EnterpriseAuthId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Store");
                    b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType")
                        .WithMany()
                        .HasForeignKey("IndustryTypeId");
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
                        .WithMany()
                        .HasForeignKey("ProvinceId");
                    b.Navigation("City");
                    b.Navigation("EnterpriseAuth");
                    b.Navigation("IndustryType");
                    b.Navigation("Province");
                });
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.HasOne("FlexJobApi.Core.Menu", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Parent");
@@ -1813,9 +1814,9 @@
            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
                {
                    b.HasOne("FlexJobApi.Core.Menu", "Menu")
                    b.HasOne("FlexJobApi.Core.Resource", "Resource")
                        .WithMany()
                        .HasForeignKey("MenuId")
                        .HasForeignKey("ResourceId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
@@ -1825,7 +1826,7 @@
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Menu");
                    b.Navigation("Resource");
                    b.Navigation("Role");
                });
@@ -1904,33 +1905,6 @@
                    b.Navigation("UserInfo");
                });
            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
                {
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "Avatar")
                        .WithMany()
                        .HasForeignKey("AvatarId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "BankCardImg")
                        .WithMany()
                        .HasForeignKey("BankCardImgId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "IdentityBackImg")
                        .WithMany()
                        .HasForeignKey("IdentityBackImgId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "IdentityImg")
                        .WithMany()
                        .HasForeignKey("IdentityImgId");
                    b.Navigation("Avatar");
                    b.Navigation("BankCardImg");
                    b.Navigation("IdentityBackImg");
                    b.Navigation("IdentityImg");
                });
            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
                {
                    b.HasOne("FlexJobApi.Core.DictionaryData", "City")
@@ -1949,6 +1923,10 @@
                        .WithMany()
                        .HasForeignKey("PersonalIdentityId");
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
                        .WithMany()
                        .HasForeignKey("ProvinceId");
                    b.HasOne("FlexJobApi.Core.UserAuth", "UserAuth")
                        .WithMany("UserInfos")
                        .HasForeignKey("UserAuthId")
@@ -1962,6 +1940,8 @@
                    b.Navigation("Enterprise");
                    b.Navigation("PersonalIdentity");
                    b.Navigation("Province");
                    b.Navigation("UserAuth");
                });
@@ -1979,16 +1959,6 @@
            modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
                {
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "BackImg")
                        .WithMany()
                        .HasForeignKey("BackImgId");
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "Img")
                        .WithMany()
                        .HasForeignKey("ImgId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
                        .WithMany()
                        .HasForeignKey("TypeId");
@@ -1998,10 +1968,6 @@
                        .HasForeignKey("UserInfoId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("BackImg");
                    b.Navigation("Img");
                    b.Navigation("Type");
@@ -2048,19 +2014,11 @@
            modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
                {
                    b.HasOne("FlexJobApi.Core.FileVirtualPath", "Img")
                        .WithMany()
                        .HasForeignKey("ImgId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
                        .WithMany()
                        .HasForeignKey("UserInfoId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                    b.Navigation("Img");
                    b.Navigation("UserInfo");
                });
@@ -2068,7 +2026,7 @@
            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
                {
                    b.HasOne("FlexJobApi.Core.Role", "Role")
                        .WithMany()
                        .WithMany("UserInfoRoles")
                        .HasForeignKey("RoleId")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
@@ -2086,12 +2044,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 =>
@@ -2103,7 +2061,7 @@
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.Navigation("Childrens");
                    b.Navigation("Children");
                });
            modelBuilder.Entity("FlexJobApi.Core.Role", b =>
@@ -2111,6 +2069,8 @@
                    b.Navigation("RoleMenus");
                    b.Navigation("RoleResources");
                    b.Navigation("UserInfoRoles");
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>