sunpengfei
2025-08-05 100b5ecb418bf6839e47b428e346ad5f6e778d1b
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -56,6 +56,10 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("上级Id");
                    b.Property<string>("Path")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("部门路径");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("备注");
@@ -197,6 +201,10 @@
                    b.Property<Guid?>("ParentId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("上级Id");
                    b.Property<string>("Path")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("字典路径");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -501,9 +509,9 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("BindField")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("绑定字段");
                    b.Property<int>("ClientType")
                        .HasColumnType("int")
                        .HasComment("客户端类型");
                    b.Property<string>("Code")
                        .IsRequired()
@@ -537,9 +545,9 @@
                        .HasColumnType("bit")
                        .HasComment("是否禁用");
                    b.Property<bool>("IsHidden")
                        .HasColumnType("bit")
                        .HasComment("是否隐藏");
                    b.Property<string>("Location")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("位置(用于按钮)");
                    b.Property<string>("Name")
                        .IsRequired()
@@ -550,6 +558,10 @@
                    b.Property<Guid?>("ParentId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("上级Id");
                    b.Property<string>("Path")
                        .HasColumnType("nvarchar(max)")
                        .HasComment("菜单路径");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)")
@@ -578,9 +590,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)")
                        .HasComment("列宽(用于按钮/列/元素)");
                    b.HasKey("Id");
@@ -589,6 +609,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("资源");
                        });
                });
@@ -609,6 +721,9 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<int>("DataPower")
                        .HasColumnType("int");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit")
                        .HasComment("是否删除");
@@ -622,6 +737,9 @@
                        .HasMaxLength(128)
                        .HasColumnType("nvarchar(128)")
                        .HasComment("名称");
                    b.Property<string>("Remark")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Sort")
                        .HasColumnType("int")
@@ -702,7 +820,7 @@
                        });
                });
            modelBuilder.Entity("FlexJobApi.Core.RoleWebApi", b =>
            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
@@ -715,7 +833,7 @@
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<int?>("DataPower")
                    b.Property<int>("DataPower")
                        .HasColumnType("int")
                        .HasComment("数据权限");
@@ -723,9 +841,9 @@
                        .HasColumnType("bit")
                        .HasComment("是否删除");
                    b.Property<Guid>("MenuId")
                    b.Property<Guid>("ResourceId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("菜单Id");
                        .HasComment("资源Id");
                    b.Property<Guid>("RoleId")
                        .HasColumnType("uniqueidentifier")
@@ -748,13 +866,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("角色资源");
                        });
                });
@@ -1137,8 +1255,9 @@
                            IsDeleted = false,
                            IsReal = false,
                            Name = "管理员",
                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                            Sort = 0,
                            UserName = "admin"
                            UserName = "system"
                        });
                });
@@ -1211,7 +1330,8 @@
                        .HasComment("最后更新操作人");
                    b.Property<Guid>("UserAuthId")
                        .HasColumnType("uniqueidentifier");
                        .HasColumnType("uniqueidentifier")
                        .HasComment("用户Id");
                    b.Property<int?>("Weight")
                        .HasColumnType("int")
@@ -1618,68 +1738,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")
@@ -1689,7 +1747,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.Department", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Enterprise");
@@ -1706,7 +1764,7 @@
                        .IsRequired();
                    b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Category");
@@ -1749,7 +1807,7 @@
            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                {
                    b.HasOne("FlexJobApi.Core.Menu", "Parent")
                        .WithMany("Childrens")
                        .WithMany("Children")
                        .HasForeignKey("ParentId");
                    b.Navigation("Parent");
@@ -1774,21 +1832,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");
                });
@@ -2049,12 +2107,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 =>
@@ -2066,14 +2124,14 @@
            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");
                });
            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>