From 744ce126fd5dc3a0448719832d1e9667e44d30b5 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 06 八月 2025 18:39:52 +0800 Subject: [PATCH] fix:bug --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 613 +++++++++++++++++++++++++++---------------------------- 1 files changed, 305 insertions(+), 308 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index f9ecf14..a8ecbb9 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -85,7 +85,7 @@ b.HasIndex("ParentId"); - b.ToTable("Department", null, t => + b.ToTable("Department", t => { t.HasComment("閮ㄩ棬"); }); @@ -124,6 +124,10 @@ .HasColumnType("nvarchar(128)") .HasComment("鍚嶇О"); + b.Property<string>("Remark") + .HasColumnType("nvarchar(max)") + .HasComment("澶囨敞"); + b.Property<int>("Sort") .HasColumnType("int") .HasComment("鎺掑簭"); @@ -141,7 +145,7 @@ b.HasKey("Id"); - b.ToTable("DictionaryCategory", null, t => + b.ToTable("DictionaryCategory", t => { t.HasComment("瀛楀吀绫诲埆"); }); @@ -198,6 +202,10 @@ .HasColumnType("bit") .HasComment("鏄惁鍒犻櫎"); + b.Property<bool>("IsDisabled") + .HasColumnType("bit") + .HasComment("鏄惁绂佺敤"); + b.Property<Guid?>("ParentId") .HasColumnType("uniqueidentifier") .HasComment("涓婄骇Id"); @@ -227,7 +235,7 @@ b.HasIndex("ParentId"); - b.ToTable("DictionaryData", null, t => + b.ToTable("DictionaryData", t => { t.HasComment("瀛楀吀鏁版嵁"); }); @@ -239,14 +247,141 @@ .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + b.Property<string>("BankBranchName") + .HasColumnType("nvarchar(max)") + .HasComment("寮�鎴锋敮琛�"); + + b.Property<string>("BankCard") + .HasMaxLength(32) + .HasColumnType("nvarchar(32)") + .HasComment("閾惰璐︽埛"); + + b.Property<string>("BankName") + .HasColumnType("nvarchar(max)") + .HasComment("寮�鎴锋�昏"); + + b.Property<Guid?>("CityId") + .HasColumnType("uniqueidentifier") + .HasComment("鎵�鍦ㄥ煄甯侷d"); + + b.Property<string>("ContactEmail") + .HasColumnType("nvarchar(max)") + .HasComment("鑱旂郴閭"); + + b.Property<string>("ContactPhoneNumber") + .HasMaxLength(11) + .HasColumnType("nvarchar(11)") + .HasComment("鑱旂郴鐢佃瘽"); + + b.Property<string>("Contacts") + .HasMaxLength(32) + .HasColumnType("nvarchar(32)") + .HasComment("鑱旂郴浜�"); + + b.Property<DateTimeOffset>("CreatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("CreatedUserInfoId") + .HasColumnType("uniqueidentifier") + .HasComment("鍒涘缓鎿嶄綔浜�"); + + b.Property<Guid>("EnterpriseAuthId") + .HasColumnType("uniqueidentifier") + .HasComment("浼佷笟璁よ瘉Id"); + + b.Property<Guid?>("IndustryTypeId") + .HasColumnType("uniqueidentifier") + .HasComment("鎵�灞炶涓欼d"); + + b.Property<bool>("IsCheckedBankCard") + .HasColumnType("bit") + .HasComment("鏄惁宸叉牎楠岄摱琛岃处鎴�"); + + b.Property<bool>("IsDeleted") + .HasColumnType("bit") + .HasComment("鏄惁鍒犻櫎"); + + b.Property<string>("MainBusiness") + .HasColumnType("nvarchar(max)") + .HasComment("涓昏惀涓氬姟"); + + b.Property<decimal?>("MergeSignCost") + .HasColumnType("decimal(18,2)") + .HasComment("涓�鍙d环"); + + b.Property<int?>("PayAccess") + .HasColumnType("int") + .HasComment("鏀粯閫氶亾"); + + b.Property<Guid?>("ProvinceId") + .HasColumnType("uniqueidentifier") + .HasComment("鎵�鍦ㄧ渷浠絀d"); + + b.Property<int?>("RealAccess") + .HasColumnType("int") + .HasComment("瀹炲悕閫氶亾"); + + b.Property<decimal?>("RealVerifyCost") + .HasColumnType("decimal(18,2)") + .HasComment("瀹炲悕璐圭敤"); + + b.Property<decimal?>("SignCost") + .HasColumnType("decimal(18,2)") + .HasComment("绛剧害璐圭敤"); + + b.Property<int?>("SmsAccess") + .HasColumnType("int") + .HasComment("鐭俊閫氶亾"); + + b.Property<decimal>("SmsCost") + .HasColumnType("decimal(18,2)") + .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.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)") .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗″彿"); - b.Property<Guid?>("BankCardImgId") - .HasColumnType("uniqueidentifier") - .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗嘔d"); + b.Property<string>("BankCardImg") + .HasColumnType("nvarchar(max)") + .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗�"); b.Property<DateTimeOffset>("CreatedTime") .HasColumnType("datetimeoffset"); @@ -270,13 +405,13 @@ .HasColumnType("nvarchar(18)") .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>("IsDeleted") .HasColumnType("bit") @@ -286,14 +421,19 @@ .HasColumnType("bit") .HasComment("鏄惁瀹炲悕"); + b.Property<string>("LegalIdentity") + .HasMaxLength(18) + .HasColumnType("nvarchar(18)") + .HasComment("娉曚汉韬唤璇佸彿"); + b.Property<string>("LegalPerson") .HasMaxLength(32) .HasColumnType("nvarchar(32)") .HasComment("娉曚汉濮撳悕"); - b.Property<Guid?>("LicenseImageId") - .HasColumnType("uniqueidentifier") - .HasComment("钀ヤ笟鎵х収鐓х墖Id"); + b.Property<string>("LicenseImage") + .HasColumnType("nvarchar(max)") + .HasComment("钀ヤ笟鎵х収鐓х墖"); b.Property<string>("Name") .HasMaxLength(32) @@ -316,10 +456,6 @@ b.Property<string>("ProxyPowerAttorneyUrl") .HasColumnType("nvarchar(max)") .HasComment("浼佷笟鎺堟潈涔�"); - - b.Property<int?>("RealAccess") - .HasColumnType("int") - .HasComment("瀹炲悕閫氶亾"); b.Property<string>("SocietyCreditCode") .IsRequired() @@ -344,162 +480,9 @@ b.HasKey("Id"); - b.HasIndex("IdentityBackImgId"); - - b.HasIndex("IdentityImgId"); - - b.HasIndex("LicenseImageId"); - - b.ToTable("Enterprise", null, t => + b.ToTable("EnterpriseAuth", 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", null, 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", null, t => - { - t.HasComment("鏂囦欢铏氭嫙璺緞"); + t.HasComment("浼佷笟璁よ瘉"); }); }); @@ -606,7 +589,7 @@ b.HasIndex("ParentId"); - b.ToTable("Menu", null, t => + b.ToTable("Menu", t => { t.HasComment("鑿滃崟"); }); @@ -618,10 +601,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 +636,10 @@ b.Property<Guid?>("CreatedUserInfoId") .HasColumnType("uniqueidentifier") .HasComment("鍒涘缓鎿嶄綔浜�"); + + b.Property<string>("DynamicAssemblyName") + .HasColumnType("nvarchar(max)") + .HasComment("鍔ㄦ�佺▼搴忛泦鍚嶇О"); b.Property<bool>("IsDeleted") .HasColumnType("bit") @@ -647,10 +658,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 +683,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") @@ -684,7 +712,7 @@ b.HasKey("Id"); - b.ToTable("Resource", null, t => + b.ToTable("Resource", t => { t.HasComment("璧勬簮"); }); @@ -707,9 +735,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 +756,10 @@ .HasMaxLength(128) .HasColumnType("nvarchar(128)") .HasComment("鍚嶇О"); + + b.Property<string>("Remark") + .HasColumnType("nvarchar(max)") + .HasComment("澶囨敞"); b.Property<int>("Sort") .HasColumnType("int") @@ -742,7 +782,7 @@ b.HasKey("Id"); - b.ToTable("Role", null, t => + b.ToTable("Role", t => { t.HasComment("瑙掕壊"); }); @@ -794,7 +834,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleMenu", null, t => + b.ToTable("RoleMenu", t => { t.HasComment("瑙掕壊鑿滃崟"); }); @@ -850,7 +890,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleResource", null, t => + b.ToTable("RoleResource", t => { t.HasComment("瑙掕壊璧勬簮"); }); @@ -943,7 +983,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("TaskInfo", null, t => + b.ToTable("TaskInfo", t => { t.HasComment("浠诲姟淇℃伅"); }); @@ -998,7 +1038,7 @@ b.HasIndex("BenefitId1"); - b.ToTable("TaskInfoBenefit", null, t => + b.ToTable("TaskInfoBenefit", t => { t.HasComment("浠诲姟绂忓埄"); }); @@ -1050,7 +1090,7 @@ b.HasIndex("TypeId"); - b.ToTable("TaskInfoCredentialLimit", (string)null); + b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => @@ -1115,7 +1155,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("TaskInfoUser", null, t => + b.ToTable("TaskInfoUser", t => { t.HasComment("浠诲姟鐢ㄦ埛淇℃伅"); }); @@ -1127,18 +1167,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("閾惰鍗$収鐗嘔d"); + b.Property<string>("BankCardImg") + .HasColumnType("nvarchar(max)") + .HasComment("閾惰鍗$収鐗�"); b.Property<DateTimeOffset>("CreatedTime") .HasColumnType("datetimeoffset"); @@ -1151,13 +1187,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,15 +1249,7 @@ b.HasKey("Id"); - b.HasIndex("AvatarId"); - - b.HasIndex("BankCardImgId"); - - b.HasIndex("IdentityBackImgId"); - - b.HasIndex("IdentityImgId"); - - b.ToTable("UserAuth", null, t => + b.ToTable("UserAuth", t => { t.HasComment("鐢ㄦ埛"); }); @@ -1246,6 +1274,10 @@ b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + + b.Property<string>("Avatar") + .HasColumnType("nvarchar(max)") + .HasComment("澶村儚"); b.Property<Guid?>("CityId") .HasColumnType("uniqueidentifier") @@ -1290,9 +1322,21 @@ .HasColumnType("uniqueidentifier") .HasComment("韬唤Id"); + b.Property<Guid?>("ProvinceId") + .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)") @@ -1340,9 +1384,11 @@ b.HasIndex("PersonalIdentityId"); + b.HasIndex("ProvinceId"); + b.HasIndex("UserAuthId"); - b.ToTable("UserInfo", null, t => + b.ToTable("UserInfo", t => { t.HasComment("鐢ㄦ埛淇℃伅"); }); @@ -1355,6 +1401,7 @@ IsDeleted = false, Level = 999, Sort = 0, + Status = 0, Type = 100, UserAuthId = new Guid("11111111-1111-1111-1111-111111111111") }); @@ -1418,7 +1465,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoBankCard", null, t => + b.ToTable("UserInfoBankCard", t => { t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�"); }); @@ -1430,9 +1477,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() @@ -1451,9 +1498,9 @@ .HasColumnType("datetime2") .HasComment("缁撴潫鏃ユ湡"); - b.Property<Guid>("ImgId") - .HasColumnType("uniqueidentifier") - .HasComment("璇佷功姝i潰鐓х墖Id"); + b.Property<string>("Img") + .HasColumnType("nvarchar(max)") + .HasComment("璇佷功姝i潰鐓х墖"); b.Property<bool>("IsDeleted") .HasColumnType("bit") @@ -1496,15 +1543,11 @@ b.HasKey("Id"); - b.HasIndex("BackImgId"); - - b.HasIndex("ImgId"); - b.HasIndex("TypeId"); b.HasIndex("UserInfoId"); - b.ToTable("UserInfoCredential", null, t => + b.ToTable("UserInfoCredential", t => { t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功"); }); @@ -1556,7 +1599,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoDepartment", null, t => + b.ToTable("UserInfoDepartment", t => { t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬"); }); @@ -1608,7 +1651,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoExpectJob", null, t => + b.ToTable("UserInfoExpectJob", t => { t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅"); }); @@ -1627,9 +1670,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") @@ -1656,11 +1699,9 @@ b.HasKey("Id"); - b.HasIndex("ImgId"); - b.HasIndex("UserInfoId"); - b.ToTable("UserInfoPhoto", null, t => + b.ToTable("UserInfoPhoto", t => { t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�"); }); @@ -1712,7 +1753,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoRole", null, t => + b.ToTable("UserInfoRole", t => { t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊"); }); @@ -1727,7 +1768,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.Department", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Enterprise"); @@ -1744,7 +1785,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Category"); @@ -1754,40 +1795,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"); @@ -1905,33 +1943,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") @@ -1950,6 +1961,10 @@ .WithMany() .HasForeignKey("PersonalIdentityId"); + b.HasOne("FlexJobApi.Core.DictionaryData", "Province") + .WithMany() + .HasForeignKey("ProvinceId"); + b.HasOne("FlexJobApi.Core.UserAuth", "UserAuth") .WithMany("UserInfos") .HasForeignKey("UserAuthId") @@ -1963,6 +1978,8 @@ b.Navigation("Enterprise"); b.Navigation("PersonalIdentity"); + + b.Navigation("Province"); b.Navigation("UserAuth"); }); @@ -1980,16 +1997,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"); @@ -1999,10 +2006,6 @@ .HasForeignKey("UserInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("BackImg"); - - b.Navigation("Img"); b.Navigation("Type"); @@ -2049,19 +2052,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"); }); @@ -2069,7 +2064,7 @@ modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b => { b.HasOne("FlexJobApi.Core.Role", "Role") - .WithMany() + .WithMany("UserInfoRoles") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2087,12 +2082,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 +2099,7 @@ modelBuilder.Entity("FlexJobApi.Core.Menu", b => { - b.Navigation("Childrens"); + b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => @@ -2112,6 +2107,8 @@ b.Navigation("RoleMenus"); b.Navigation("RoleResources"); + + b.Navigation("UserInfoRoles"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => -- Gitblit v1.9.1