From bc6813b74e9a390eae2181d460c647445b7cb25a Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 06 八月 2025 11:22:18 +0800 Subject: [PATCH] feat:数据字典开发 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 152 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 119 insertions(+), 33 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index f9ecf14..2b196b6 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("瀛楀吀鏁版嵁"); }); @@ -247,6 +255,16 @@ b.Property<Guid?>("BankCardImgId") .HasColumnType("uniqueidentifier") .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗嘔d"); + + b.Property<string>("ContactNumber") + .HasMaxLength(11) + .HasColumnType("nvarchar(11)") + .HasComment("鑱旂郴鐢佃瘽"); + + b.Property<string>("Contacts") + .HasMaxLength(32) + .HasColumnType("nvarchar(32)") + .HasComment("鑱旂郴浜�"); b.Property<DateTimeOffset>("CreatedTime") .HasColumnType("datetimeoffset"); @@ -350,7 +368,7 @@ b.HasIndex("LicenseImageId"); - b.ToTable("Enterprise", null, t => + b.ToTable("Enterprise", t => { t.HasComment("浼佷笟"); }); @@ -441,7 +459,7 @@ b.HasKey("Id"); - b.ToTable("FileStore", null, t => + b.ToTable("FileStore", t => { t.HasComment("鏂囦欢瀛樺偍"); }); @@ -497,7 +515,7 @@ b.HasIndex("StoreId"); - b.ToTable("FileVirtualPath", null, t => + b.ToTable("FileVirtualPath", t => { t.HasComment("鏂囦欢铏氭嫙璺緞"); }); @@ -606,7 +624,7 @@ b.HasIndex("ParentId"); - b.ToTable("Menu", null, t => + b.ToTable("Menu", t => { t.HasComment("鑿滃崟"); }); @@ -618,10 +636,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 +671,10 @@ b.Property<Guid?>("CreatedUserInfoId") .HasColumnType("uniqueidentifier") .HasComment("鍒涘缓鎿嶄綔浜�"); + + b.Property<string>("DynamicAssemblyName") + .HasColumnType("nvarchar(max)") + .HasComment("鍔ㄦ�佺▼搴忛泦鍚嶇О"); b.Property<bool>("IsDeleted") .HasColumnType("bit") @@ -647,10 +693,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 +718,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 +747,7 @@ b.HasKey("Id"); - b.ToTable("Resource", null, t => + b.ToTable("Resource", t => { t.HasComment("璧勬簮"); }); @@ -707,9 +770,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 +791,10 @@ .HasMaxLength(128) .HasColumnType("nvarchar(128)") .HasComment("鍚嶇О"); + + b.Property<string>("Remark") + .HasColumnType("nvarchar(max)") + .HasComment("澶囨敞"); b.Property<int>("Sort") .HasColumnType("int") @@ -742,7 +817,7 @@ b.HasKey("Id"); - b.ToTable("Role", null, t => + b.ToTable("Role", t => { t.HasComment("瑙掕壊"); }); @@ -794,7 +869,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleMenu", null, t => + b.ToTable("RoleMenu", t => { t.HasComment("瑙掕壊鑿滃崟"); }); @@ -850,7 +925,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleResource", null, t => + b.ToTable("RoleResource", t => { t.HasComment("瑙掕壊璧勬簮"); }); @@ -943,7 +1018,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("TaskInfo", null, t => + b.ToTable("TaskInfo", t => { t.HasComment("浠诲姟淇℃伅"); }); @@ -998,7 +1073,7 @@ b.HasIndex("BenefitId1"); - b.ToTable("TaskInfoBenefit", null, t => + b.ToTable("TaskInfoBenefit", t => { t.HasComment("浠诲姟绂忓埄"); }); @@ -1050,7 +1125,7 @@ b.HasIndex("TypeId"); - b.ToTable("TaskInfoCredentialLimit", (string)null); + b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => @@ -1115,7 +1190,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("TaskInfoUser", null, t => + b.ToTable("TaskInfoUser", t => { t.HasComment("浠诲姟鐢ㄦ埛淇℃伅"); }); @@ -1221,7 +1296,7 @@ b.HasIndex("IdentityImgId"); - b.ToTable("UserAuth", null, t => + b.ToTable("UserAuth", t => { t.HasComment("鐢ㄦ埛"); }); @@ -1290,9 +1365,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 +1425,7 @@ b.HasIndex("UserAuthId"); - b.ToTable("UserInfo", null, t => + b.ToTable("UserInfo", t => { t.HasComment("鐢ㄦ埛淇℃伅"); }); @@ -1355,6 +1438,7 @@ IsDeleted = false, Level = 999, Sort = 0, + Status = 0, Type = 100, UserAuthId = new Guid("11111111-1111-1111-1111-111111111111") }); @@ -1418,7 +1502,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoBankCard", null, t => + b.ToTable("UserInfoBankCard", t => { t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�"); }); @@ -1504,7 +1588,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoCredential", null, t => + b.ToTable("UserInfoCredential", t => { t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功"); }); @@ -1556,7 +1640,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoDepartment", null, t => + b.ToTable("UserInfoDepartment", t => { t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬"); }); @@ -1608,7 +1692,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoExpectJob", null, t => + b.ToTable("UserInfoExpectJob", t => { t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅"); }); @@ -1660,7 +1744,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoPhoto", null, t => + b.ToTable("UserInfoPhoto", t => { t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�"); }); @@ -1712,7 +1796,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoRole", null, t => + b.ToTable("UserInfoRole", t => { t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊"); }); @@ -1727,7 +1811,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.Department", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Enterprise"); @@ -1744,7 +1828,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Category"); @@ -1787,7 +1871,7 @@ modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.HasOne("FlexJobApi.Core.Menu", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Parent"); @@ -2069,7 +2153,7 @@ modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b => { b.HasOne("FlexJobApi.Core.Role", "Role") - .WithMany() + .WithMany("UserInfoRoles") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2087,12 +2171,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 +2188,7 @@ modelBuilder.Entity("FlexJobApi.Core.Menu", b => { - b.Navigation("Childrens"); + b.Navigation("Children"); }); modelBuilder.Entity("FlexJobApi.Core.Role", b => @@ -2112,6 +2196,8 @@ b.Navigation("RoleMenus"); b.Navigation("RoleResources"); + + b.Navigation("UserInfoRoles"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b => -- Gitblit v1.9.1