From 7374d934381f81e835314f60dc411b963614d803 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 04 八月 2025 18:36:29 +0800 Subject: [PATCH] pref:菜单优化 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 63 ++++++++++++++++--------------- 1 files changed, 32 insertions(+), 31 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index c866ce6..f9ecf14 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", t => + b.ToTable("Department", null, t => { t.HasComment("閮ㄩ棬"); }); @@ -141,7 +141,7 @@ b.HasKey("Id"); - b.ToTable("DictionaryCategory", t => + b.ToTable("DictionaryCategory", null, t => { t.HasComment("瀛楀吀绫诲埆"); }); @@ -227,7 +227,7 @@ b.HasIndex("ParentId"); - b.ToTable("DictionaryData", t => + b.ToTable("DictionaryData", null, t => { t.HasComment("瀛楀吀鏁版嵁"); }); @@ -350,7 +350,7 @@ b.HasIndex("LicenseImageId"); - b.ToTable("Enterprise", t => + b.ToTable("Enterprise", null, t => { t.HasComment("浼佷笟"); }); @@ -441,7 +441,7 @@ b.HasKey("Id"); - b.ToTable("FileStore", t => + b.ToTable("FileStore", null, t => { t.HasComment("鏂囦欢瀛樺偍"); }); @@ -497,7 +497,7 @@ b.HasIndex("StoreId"); - b.ToTable("FileVirtualPath", t => + b.ToTable("FileVirtualPath", null, t => { t.HasComment("鏂囦欢铏氭嫙璺緞"); }); @@ -606,7 +606,7 @@ b.HasIndex("ParentId"); - b.ToTable("Menu", t => + b.ToTable("Menu", null, t => { t.HasComment("鑿滃崟"); }); @@ -684,7 +684,7 @@ b.HasKey("Id"); - b.ToTable("Resource", t => + b.ToTable("Resource", null, t => { t.HasComment("璧勬簮"); }); @@ -742,7 +742,7 @@ b.HasKey("Id"); - b.ToTable("Role", t => + b.ToTable("Role", null, t => { t.HasComment("瑙掕壊"); }); @@ -794,7 +794,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleMenu", t => + b.ToTable("RoleMenu", null, t => { t.HasComment("瑙掕壊鑿滃崟"); }); @@ -813,7 +813,7 @@ .HasColumnType("uniqueidentifier") .HasComment("鍒涘缓鎿嶄綔浜�"); - b.Property<int?>("DataPower") + b.Property<int>("DataPower") .HasColumnType("int") .HasComment("鏁版嵁鏉冮檺"); @@ -821,9 +821,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,11 +846,11 @@ b.HasKey("Id"); - b.HasIndex("MenuId"); + b.HasIndex("ResourceId"); b.HasIndex("RoleId"); - b.ToTable("RoleResource", t => + b.ToTable("RoleResource", null, t => { t.HasComment("瑙掕壊璧勬簮"); }); @@ -943,7 +943,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("TaskInfo", t => + b.ToTable("TaskInfo", null, t => { t.HasComment("浠诲姟淇℃伅"); }); @@ -998,7 +998,7 @@ b.HasIndex("BenefitId1"); - b.ToTable("TaskInfoBenefit", t => + b.ToTable("TaskInfoBenefit", null, t => { t.HasComment("浠诲姟绂忓埄"); }); @@ -1050,7 +1050,7 @@ b.HasIndex("TypeId"); - b.ToTable("TaskInfoCredentialLimit"); + b.ToTable("TaskInfoCredentialLimit", (string)null); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => @@ -1115,7 +1115,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("TaskInfoUser", t => + b.ToTable("TaskInfoUser", null, t => { t.HasComment("浠诲姟鐢ㄦ埛淇℃伅"); }); @@ -1221,7 +1221,7 @@ b.HasIndex("IdentityImgId"); - b.ToTable("UserAuth", t => + b.ToTable("UserAuth", null, t => { t.HasComment("鐢ㄦ埛"); }); @@ -1235,8 +1235,9 @@ IsDeleted = false, IsReal = false, Name = "绠$悊鍛�", + Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=", Sort = 0, - UserName = "admin" + UserName = "system" }); }); @@ -1341,7 +1342,7 @@ b.HasIndex("UserAuthId"); - b.ToTable("UserInfo", t => + b.ToTable("UserInfo", null, t => { t.HasComment("鐢ㄦ埛淇℃伅"); }); @@ -1417,7 +1418,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoBankCard", t => + b.ToTable("UserInfoBankCard", null, t => { t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�"); }); @@ -1503,7 +1504,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoCredential", t => + b.ToTable("UserInfoCredential", null, t => { t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功"); }); @@ -1555,7 +1556,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoDepartment", t => + b.ToTable("UserInfoDepartment", null, t => { t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬"); }); @@ -1607,7 +1608,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoExpectJob", t => + b.ToTable("UserInfoExpectJob", null, t => { t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅"); }); @@ -1659,7 +1660,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoPhoto", t => + b.ToTable("UserInfoPhoto", null, t => { t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�"); }); @@ -1711,7 +1712,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoRole", t => + b.ToTable("UserInfoRole", null, t => { t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊"); }); @@ -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"); }); -- Gitblit v1.9.1