From 59833ddbf47ed028462e1b089b46bf7c6f7518e3 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期二, 05 八月 2025 18:31:38 +0800
Subject: [PATCH] feat:字典开发

---
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs |  264 ++++++++++++++++++++++++++++++++++------------------
 1 files changed, 174 insertions(+), 90 deletions(-)

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index 91283db..18c4892 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -57,7 +57,8 @@
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("閮ㄩ棬璺緞");
 
                     b.Property<string>("Remark")
                         .HasColumnType("nvarchar(max)")
@@ -122,6 +123,10 @@
                         .HasMaxLength(128)
                         .HasColumnType("nvarchar(128)")
                         .HasComment("鍚嶇О");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("澶囨敞");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int")
@@ -197,12 +202,17 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁鍒犻櫎");
 
+                    b.Property<bool>("IsDisabled")
+                        .HasColumnType("bit")
+                        .HasComment("鏄惁绂佺敤");
+
                     b.Property<Guid?>("ParentId")
                         .HasColumnType("uniqueidentifier")
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("瀛楀吀璺緞");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int")
@@ -245,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");
@@ -507,6 +527,10 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<int>("ClientType")
+                        .HasColumnType("int")
+                        .HasComment("瀹㈡埛绔被鍨�");
+
                     b.Property<string>("Code")
                         .IsRequired()
                         .HasColumnType("nvarchar(max)")
@@ -539,9 +563,9 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁绂佺敤");
 
-                    b.Property<bool>("IsHidden")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁闅愯棌");
+                    b.Property<string>("Location")
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("浣嶇疆锛堢敤浜庢寜閽級");
 
                     b.Property<string>("Name")
                         .IsRequired()
@@ -554,7 +578,8 @@
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鑿滃崟璺緞");
 
                     b.Property<string>("Remark")
                         .HasColumnType("nvarchar(max)")
@@ -583,12 +608,17 @@
                         .HasColumnType("nvarchar(max)")
                         .HasComment("閾炬帴鍦板潃");
 
+                    b.Property<int>("UserType")
+                        .HasColumnType("int")
+                        .HasComment("鐢ㄦ埛绫诲瀷");
+
                     b.Property<int>("VisitLevel")
                         .HasColumnType("int")
                         .HasComment("璁块棶绾у埆");
 
                     b.Property<string>("Width")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍒楀锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛�");
 
                     b.HasKey("Id");
 
@@ -597,6 +627,98 @@
                     b.ToTable("Menu", t =>
                         {
                             t.HasComment("鑿滃崟");
+                        });
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .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");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier")
+                        .HasComment("鍒涘缓鎿嶄綔浜�");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit")
+                        .HasComment("鏄惁鍒犻櫎");
+
+                    b.Property<bool>("IsExpired")
+                        .HasColumnType("bit")
+                        .HasComment("鏄惁宸茶繃鏈�");
+
+                    b.Property<int>("Method")
+                        .HasColumnType("int")
+                        .HasComment("璇锋眰鏂瑰紡");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .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()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍝嶅簲绫诲瀷鍚嶇О");
+
+                    b.Property<string>("Route")
+                        .IsRequired()
+                        .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("Resource", t =>
+                        {
+                            t.HasComment("璧勬簮");
                         });
                 });
 
@@ -617,9 +739,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")
@@ -630,6 +760,10 @@
                         .HasMaxLength(128)
                         .HasColumnType("nvarchar(128)")
                         .HasComment("鍚嶇О");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("澶囨敞");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int")
@@ -710,7 +844,7 @@
                         });
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.RoleWebApi", b =>
+            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
@@ -723,7 +857,7 @@
                         .HasColumnType("uniqueidentifier")
                         .HasComment("鍒涘缓鎿嶄綔浜�");
 
-                    b.Property<int?>("DataPower")
+                    b.Property<int>("DataPower")
                         .HasColumnType("int")
                         .HasComment("鏁版嵁鏉冮檺");
 
@@ -731,9 +865,9 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁鍒犻櫎");
 
-                    b.Property<Guid>("MenuId")
+                    b.Property<Guid>("ResourceId")
                         .HasColumnType("uniqueidentifier")
-                        .HasComment("鑿滃崟Id");
+                        .HasComment("璧勬簮Id");
 
                     b.Property<Guid>("RoleId")
                         .HasColumnType("uniqueidentifier")
@@ -756,13 +890,13 @@
 
                     b.HasKey("Id");
 
-                    b.HasIndex("MenuId");
+                    b.HasIndex("ResourceId");
 
                     b.HasIndex("RoleId");
 
-                    b.ToTable("RoleWebApi", t =>
+                    b.ToTable("RoleResource", t =>
                         {
-                            t.HasComment("瑙掕壊鎺ュ彛");
+                            t.HasComment("瑙掕壊璧勬簮");
                         });
                 });
 
@@ -1145,8 +1279,9 @@
                             IsDeleted = false,
                             IsReal = false,
                             Name = "绠$悊鍛�",
+                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                             Sort = 0,
-                            UserName = "admin"
+                            UserName = "system"
                         });
                 });
 
@@ -1199,9 +1334,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)")
@@ -1264,6 +1407,7 @@
                             IsDeleted = false,
                             Level = 999,
                             Sort = 0,
+                            Status = 0,
                             Type = 100,
                             UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
                         });
@@ -1627,68 +1771,6 @@
                         });
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.WebApi", b =>
-                {
-                    b.Property<Guid>("Id")
-                        .ValueGeneratedOnAdd()
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<string>("Code")
-                        .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("缂栧彿");
-
-                    b.Property<DateTimeOffset>("CreatedTime")
-                        .HasColumnType("datetimeoffset");
-
-                    b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
-
-                    b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
-
-                    b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
-
-                    b.Property<int>("Method")
-                        .HasColumnType("int")
-                        .HasComment("璇锋眰鏂瑰紡");
-
-                    b.Property<string>("Name")
-                        .IsRequired()
-                        .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.Property<string>("Url")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺敱鍦板潃");
-
-                    b.HasKey("Id");
-
-                    b.ToTable("WebApi", t =>
-                        {
-                            t.HasComment("鎺ュ彛");
-                        });
-                });
-
             modelBuilder.Entity("FlexJobApi.Core.Department", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
@@ -1698,7 +1780,7 @@
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.Department", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Enterprise");
@@ -1715,7 +1797,7 @@
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Category");
@@ -1758,7 +1840,7 @@
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Menu", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Parent");
@@ -1783,21 +1865,21 @@
                     b.Navigation("Role");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.RoleWebApi", b =>
+            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();
 
                     b.HasOne("FlexJobApi.Core.Role", "Role")
-                        .WithMany("RoleWebApis")
+                        .WithMany("RoleResources")
                         .HasForeignKey("RoleId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.Navigation("Menu");
+                    b.Navigation("Resource");
 
                     b.Navigation("Role");
                 });
@@ -2040,7 +2122,7 @@
             modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Role", "Role")
-                        .WithMany()
+                        .WithMany("UserInfoRoles")
                         .HasForeignKey("RoleId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
@@ -2058,12 +2140,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 =>
@@ -2075,14 +2157,16 @@
 
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                 {
-                    b.Navigation("Childrens");
+                    b.Navigation("Children");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Role", b =>
                 {
                     b.Navigation("RoleMenus");
 
-                    b.Navigation("RoleWebApis");
+                    b.Navigation("RoleResources");
+
+                    b.Navigation("UserInfoRoles");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>

--
Gitblit v1.9.1