|
@@ -0,0 +1,809 @@
|
|
|
+// <auto-generated />
|
|
|
+using System;
|
|
|
+using ECL142.BasicAuth.EntityFrameworkCore.Repository;
|
|
|
+using Microsoft.EntityFrameworkCore;
|
|
|
+using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
+using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
+using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
+
|
|
|
+#nullable disable
|
|
|
+
|
|
|
+namespace ECL142.BasicAuth.EntityFrameworkCore.DbMigrations.Migrations
|
|
|
+{
|
|
|
+ [DbContext(typeof(ApplicationDbContext))]
|
|
|
+ [Migration("20240413234821_InitDB")]
|
|
|
+ partial class InitDB
|
|
|
+ {
|
|
|
+ /// <inheritdoc />
|
|
|
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
+ {
|
|
|
+#pragma warning disable 612, 618
|
|
|
+ modelBuilder
|
|
|
+ .HasAnnotation("ProductVersion", "8.0.4")
|
|
|
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
+
|
|
|
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.ElePermission", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("Id")
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("ApiMethod")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<string>("Code")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<string>("Component")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<DateTime>("CreationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid?>("CreatorId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("Icon")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<DateTime?>("LastModificationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid>("LastModifierId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("Name")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<Guid?>("ParentId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<int>("PermissionType")
|
|
|
+ .HasColumnType("int");
|
|
|
+
|
|
|
+ b.Property<string>("Remark")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<int>("Sort")
|
|
|
+ .HasColumnType("int");
|
|
|
+
|
|
|
+ b.Property<int>("Status")
|
|
|
+ .HasColumnType("int");
|
|
|
+
|
|
|
+ b.Property<string>("Url")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.HasKey("Id");
|
|
|
+
|
|
|
+ b.HasIndex("CreationTime");
|
|
|
+
|
|
|
+ b.ToTable("ElePermission", (string)null);
|
|
|
+
|
|
|
+ b.HasData(
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1218),
|
|
|
+ Icon = "el-icon-s-tools",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "系统管理",
|
|
|
+ PermissionType = 0,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("09f1720e-bdd0-448d-9572-e0d1418fc4f8"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.user",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1241),
|
|
|
+ Icon = "el-icon-user-solid",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "用户管理",
|
|
|
+ ParentId = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ PermissionType = 0,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("f4af67e1-5614-4200-b4b9-edd5fe5d67b2"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.role",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1244),
|
|
|
+ Icon = "peoples",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "角色管理",
|
|
|
+ ParentId = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ PermissionType = 0,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("ae19a33d-79b2-4963-a992-febfc0ef1e58"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.permission",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1245),
|
|
|
+ Icon = "list",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "菜单管理",
|
|
|
+ ParentId = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ PermissionType = 0,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("752f03f3-b335-4ed7-a54b-2486f2c5d03e"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.rolepermission",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1248),
|
|
|
+ Icon = "example",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "角色权限",
|
|
|
+ ParentId = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ PermissionType = 0,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("23b39087-3df6-4338-b5c9-148dcd45e234"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.user.add",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1258),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "添加",
|
|
|
+ ParentId = new Guid("09f1720e-bdd0-448d-9572-e0d1418fc4f8"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("cb9468e1-3e89-432b-8f66-61493a53d5ac"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.user.edit",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1261),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "编辑",
|
|
|
+ ParentId = new Guid("09f1720e-bdd0-448d-9572-e0d1418fc4f8"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("9f732d16-a64b-4248-8264-2f4e334e3e01"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.user.delete",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1264),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "删除",
|
|
|
+ ParentId = new Guid("09f1720e-bdd0-448d-9572-e0d1418fc4f8"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("795ab106-a9e0-4142-948d-2a709a0fd371"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.role.add",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1267),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "添加",
|
|
|
+ ParentId = new Guid("f4af67e1-5614-4200-b4b9-edd5fe5d67b2"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("14492003-3428-4a58-89a5-d91f2328b94f"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.role.edit",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1272),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "编辑",
|
|
|
+ ParentId = new Guid("f4af67e1-5614-4200-b4b9-edd5fe5d67b2"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("a950864b-283c-47a0-b931-2683a2c16ed5"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.role.delete",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1274),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "删除",
|
|
|
+ ParentId = new Guid("f4af67e1-5614-4200-b4b9-edd5fe5d67b2"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("58430242-3945-4b5a-b5cb-f58ab3d11fa1"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.permission.add",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1279),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "添加",
|
|
|
+ ParentId = new Guid("ae19a33d-79b2-4963-a992-febfc0ef1e58"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("668c187c-011f-4c93-ada8-b9612d01b285"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.permission.edit",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1284),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "编辑",
|
|
|
+ ParentId = new Guid("ae19a33d-79b2-4963-a992-febfc0ef1e58"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("139cdb4c-0b37-487b-a469-c42ca1179d73"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.permission.delete",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1286),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "删除",
|
|
|
+ ParentId = new Guid("ae19a33d-79b2-4963-a992-febfc0ef1e58"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("ea249c96-eb42-455c-8971-6d14897b250a"),
|
|
|
+ ApiMethod = "GET",
|
|
|
+ Code = "system.rolepermission.update",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1288),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "更新",
|
|
|
+ ParentId = new Guid("752f03f3-b335-4ed7-a54b-2486f2c5d03e"),
|
|
|
+ PermissionType = 1,
|
|
|
+ Sort = 0,
|
|
|
+ Status = 1
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRole", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("Id")
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("ConcurrencyStamp")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<DateTime>("CreationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid?>("CreatorId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<DateTime?>("LastModificationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid>("LastModifierId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("Name")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(50)
|
|
|
+ .HasColumnType("nvarchar(50)");
|
|
|
+
|
|
|
+ b.Property<string>("NormalizedName")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(50)
|
|
|
+ .HasColumnType("nvarchar(50)");
|
|
|
+
|
|
|
+ b.Property<string>("Remark")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<int>("Status")
|
|
|
+ .HasColumnType("int");
|
|
|
+
|
|
|
+ b.HasKey("Id");
|
|
|
+
|
|
|
+ b.HasIndex("CreationTime");
|
|
|
+
|
|
|
+ b.HasIndex("NormalizedName");
|
|
|
+
|
|
|
+ b.ToTable("EleRole", (string)null);
|
|
|
+
|
|
|
+ b.HasData(
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ ConcurrencyStamp = "640f42fdd96a4e4d827dc511cac97b79",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 575, DateTimeKind.Local).AddTicks(3124),
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ Name = "管理员",
|
|
|
+ NormalizedName = "管理员",
|
|
|
+ Status = 1
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRoleClaim", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("Id")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("ClaimType")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<string>("ClaimValue")
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<Guid>("RoleId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.HasKey("Id");
|
|
|
+
|
|
|
+ b.HasIndex("RoleId");
|
|
|
+
|
|
|
+ b.ToTable("EleRoleClaim", (string)null);
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRolePermission", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("RoleId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<Guid>("PermissionId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<DateTime>("CreationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid>("CreatorId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.HasKey("RoleId", "PermissionId");
|
|
|
+
|
|
|
+ b.HasIndex("PermissionId");
|
|
|
+
|
|
|
+ b.HasIndex("RoleId", "PermissionId");
|
|
|
+
|
|
|
+ b.ToTable("EleRolePermission", (string)null);
|
|
|
+
|
|
|
+ b.HasData(
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("1d4c0cd9-47e5-4de7-a523-8d74cb7a973b"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1357),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("09f1720e-bdd0-448d-9572-e0d1418fc4f8"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1364),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("f4af67e1-5614-4200-b4b9-edd5fe5d67b2"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1365),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("ae19a33d-79b2-4963-a992-febfc0ef1e58"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1366),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("752f03f3-b335-4ed7-a54b-2486f2c5d03e"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1367),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("23b39087-3df6-4338-b5c9-148dcd45e234"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1368),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("cb9468e1-3e89-432b-8f66-61493a53d5ac"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1369),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("9f732d16-a64b-4248-8264-2f4e334e3e01"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1370),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("795ab106-a9e0-4142-948d-2a709a0fd371"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1371),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("14492003-3428-4a58-89a5-d91f2328b94f"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1372),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("a950864b-283c-47a0-b931-2683a2c16ed5"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1373),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("58430242-3945-4b5a-b5cb-f58ab3d11fa1"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1374),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("668c187c-011f-4c93-ada8-b9612d01b285"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1374),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("139cdb4c-0b37-487b-a469-c42ca1179d73"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1375),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ },
|
|
|
+ new
|
|
|
+ {
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ PermissionId = new Guid("ea249c96-eb42-455c-8971-6d14897b250a"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1376),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("Id")
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<int>("AccessFailedCount")
|
|
|
+ .HasColumnType("int")
|
|
|
+ .HasColumnName("AccessFailedCount");
|
|
|
+
|
|
|
+ b.Property<string>("ConcurrencyStamp")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<DateTime>("CreationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid?>("CreatorId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("Email")
|
|
|
+ .HasColumnType("nvarchar(450)");
|
|
|
+
|
|
|
+ b.Property<bool>("EmailConfirmed")
|
|
|
+ .HasColumnType("bit");
|
|
|
+
|
|
|
+ b.Property<string>("FullName")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<DateTime?>("LastModificationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid>("LastModifierId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<bool>("LockoutEnabled")
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
+ .HasColumnType("bit")
|
|
|
+ .HasDefaultValue(false)
|
|
|
+ .HasColumnName("LockoutEnabled");
|
|
|
+
|
|
|
+ b.Property<DateTimeOffset?>("LockoutEnd")
|
|
|
+ .HasColumnType("datetimeoffset");
|
|
|
+
|
|
|
+ b.Property<string>("NormalizedEmail")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(100)
|
|
|
+ .HasColumnType("nvarchar(100)")
|
|
|
+ .HasColumnName("NormalizedEmail");
|
|
|
+
|
|
|
+ b.Property<string>("NormalizedUserName")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(50)
|
|
|
+ .HasColumnType("nvarchar(50)")
|
|
|
+ .HasColumnName("NormalizedUserName");
|
|
|
+
|
|
|
+ b.Property<string>("PasswordHash")
|
|
|
+ .HasMaxLength(100)
|
|
|
+ .HasColumnType("nvarchar(100)")
|
|
|
+ .HasColumnName("PasswordHash");
|
|
|
+
|
|
|
+ b.Property<string>("PhoneNumber")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<bool>("PhoneNumberConfirmed")
|
|
|
+ .HasColumnType("bit");
|
|
|
+
|
|
|
+ b.Property<string>("Remark")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.Property<string>("SecurityStamp")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(50)
|
|
|
+ .HasColumnType("nvarchar(50)")
|
|
|
+ .HasColumnName("SecurityStamp");
|
|
|
+
|
|
|
+ b.Property<int>("Status")
|
|
|
+ .HasColumnType("int");
|
|
|
+
|
|
|
+ b.Property<bool>("TwoFactorEnabled")
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
+ .HasColumnType("bit")
|
|
|
+ .HasDefaultValue(false)
|
|
|
+ .HasColumnName("TwoFactorEnabled");
|
|
|
+
|
|
|
+ b.Property<string>("UserName")
|
|
|
+ .HasColumnType("nvarchar(450)");
|
|
|
+
|
|
|
+ b.HasKey("Id");
|
|
|
+
|
|
|
+ b.HasIndex("CreationTime");
|
|
|
+
|
|
|
+ b.HasIndex("Email");
|
|
|
+
|
|
|
+ b.HasIndex("NormalizedEmail");
|
|
|
+
|
|
|
+ b.HasIndex("NormalizedUserName");
|
|
|
+
|
|
|
+ b.HasIndex("UserName");
|
|
|
+
|
|
|
+ b.ToTable("EleUser", (string)null);
|
|
|
+
|
|
|
+ b.HasData(
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Id = new Guid("0abd1739-7b72-4556-ad70-89009ecbcaa7"),
|
|
|
+ AccessFailedCount = 0,
|
|
|
+ ConcurrencyStamp = "de91e8a7e6da452998d003c0deed563d",
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 575, DateTimeKind.Local).AddTicks(3428),
|
|
|
+ Email = "admin@eletric.com",
|
|
|
+ EmailConfirmed = true,
|
|
|
+ FullName = "管理员",
|
|
|
+ LastModifierId = new Guid("00000000-0000-0000-0000-000000000000"),
|
|
|
+ LockoutEnabled = false,
|
|
|
+ NormalizedEmail = "ADMIN@ELETRIC.COM",
|
|
|
+ NormalizedUserName = "ADMIN",
|
|
|
+ PasswordHash = "AQAAAAIAAYagAAAAEIKewBYi6+6C2NweyM9RnBUliFXSc4zrK32BJWOzjIbVKdlE2p0MIcW5y5aYkQPBMw==",
|
|
|
+ PhoneNumberConfirmed = false,
|
|
|
+ SecurityStamp = "d31f0633-9dbc-4011-8620-04ccf42f5bf7",
|
|
|
+ Status = 1,
|
|
|
+ TwoFactorEnabled = false,
|
|
|
+ UserName = "admin"
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserClaim", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("Id")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("ClaimType")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(100)
|
|
|
+ .HasColumnType("nvarchar(100)");
|
|
|
+
|
|
|
+ b.Property<string>("ClaimValue")
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<Guid>("UserId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.HasKey("Id");
|
|
|
+
|
|
|
+ b.HasIndex("UserId");
|
|
|
+
|
|
|
+ b.ToTable("EleUserClaim", (string)null);
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserLogin", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("UserId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("LoginProvider")
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<string>("ProviderDisplayName")
|
|
|
+ .HasMaxLength(100)
|
|
|
+ .HasColumnType("nvarchar(100)");
|
|
|
+
|
|
|
+ b.Property<string>("ProviderKey")
|
|
|
+ .IsRequired()
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.HasKey("UserId", "LoginProvider");
|
|
|
+
|
|
|
+ b.HasIndex("LoginProvider", "ProviderKey");
|
|
|
+
|
|
|
+ b.ToTable("EleUserLogin", (string)null);
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserRole", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("UserId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<Guid>("RoleId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<DateTime>("CreationTime")
|
|
|
+ .HasColumnType("datetime2");
|
|
|
+
|
|
|
+ b.Property<Guid>("CreatorId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.HasKey("UserId", "RoleId");
|
|
|
+
|
|
|
+ b.HasIndex("RoleId", "UserId");
|
|
|
+
|
|
|
+ b.ToTable("EleUserRole", (string)null);
|
|
|
+
|
|
|
+ b.HasData(
|
|
|
+ new
|
|
|
+ {
|
|
|
+ UserId = new Guid("0abd1739-7b72-4556-ad70-89009ecbcaa7"),
|
|
|
+ RoleId = new Guid("bc35ed5e-61ac-4bb7-a57f-a2a768ff9bed"),
|
|
|
+ CreationTime = new DateTime(2024, 4, 14, 7, 48, 20, 659, DateTimeKind.Local).AddTicks(1121),
|
|
|
+ CreatorId = new Guid("00000000-0000-0000-0000-000000000000")
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserToken", b =>
|
|
|
+ {
|
|
|
+ b.Property<Guid>("UserId")
|
|
|
+ .HasColumnType("uniqueidentifier");
|
|
|
+
|
|
|
+ b.Property<string>("LoginProvider")
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<string>("Name")
|
|
|
+ .HasMaxLength(200)
|
|
|
+ .HasColumnType("nvarchar(200)");
|
|
|
+
|
|
|
+ b.Property<string>("Value")
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
+
|
|
|
+ b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
+
|
|
|
+ b.ToTable("EleUserToken", (string)null);
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRoleClaim", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleRole", null)
|
|
|
+ .WithMany("Claims")
|
|
|
+ .HasForeignKey("RoleId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRolePermission", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.ElePermission", null)
|
|
|
+ .WithMany()
|
|
|
+ .HasForeignKey("PermissionId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleRole", null)
|
|
|
+ .WithMany("Permissions")
|
|
|
+ .HasForeignKey("RoleId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserClaim", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", null)
|
|
|
+ .WithMany("Claims")
|
|
|
+ .HasForeignKey("UserId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserLogin", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", null)
|
|
|
+ .WithMany("Logins")
|
|
|
+ .HasForeignKey("UserId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserRole", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleRole", null)
|
|
|
+ .WithMany()
|
|
|
+ .HasForeignKey("RoleId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", null)
|
|
|
+ .WithMany("Roles")
|
|
|
+ .HasForeignKey("UserId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUserToken", b =>
|
|
|
+ {
|
|
|
+ b.HasOne("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", null)
|
|
|
+ .WithMany("Tokens")
|
|
|
+ .HasForeignKey("UserId")
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
+ .IsRequired();
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleRole", b =>
|
|
|
+ {
|
|
|
+ b.Navigation("Claims");
|
|
|
+
|
|
|
+ b.Navigation("Permissions");
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity("ECL142.BasicAuth.Domain.Entities.Identity.EleUser", b =>
|
|
|
+ {
|
|
|
+ b.Navigation("Claims");
|
|
|
+
|
|
|
+ b.Navigation("Logins");
|
|
|
+
|
|
|
+ b.Navigation("Roles");
|
|
|
+
|
|
|
+ b.Navigation("Tokens");
|
|
|
+ });
|
|
|
+#pragma warning restore 612, 618
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|