390 lines
16 KiB
C#
390 lines
16 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using MagMan.Data.Admin;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace MagMan.Data.Admin.Migrations.UserIdentityDb
|
|
{
|
|
[DbContext(typeof(IdentityContext))]
|
|
partial class UserIdentityDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.25")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("AspNetRoles", (string)null);
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = "e8456657-70cc-4d00-89e5-d7a8336451d5",
|
|
ConcurrencyStamp = "04a20b6f-64ae-40d7-81d8-4a52722193ec",
|
|
Name = "Undef",
|
|
NormalizedName = "UNDEF"
|
|
},
|
|
new
|
|
{
|
|
Id = "dcc6b28b-b0cb-4eb3-a8ce-2dd24ab95037",
|
|
ConcurrencyStamp = "5f90e86b-f714-4f88-a975-636d43863e08",
|
|
Name = "User",
|
|
NormalizedName = "USER"
|
|
},
|
|
new
|
|
{
|
|
Id = "487f1bcc-1278-479a-a8bf-ca31e36be138",
|
|
ConcurrencyStamp = "36019e5f-e9ee-4451-bf13-c4f563e5bb99",
|
|
Name = "Admin",
|
|
NormalizedName = "ADMIN"
|
|
},
|
|
new
|
|
{
|
|
Id = "c2a01f68-6720-48e9-87c2-433aa44d230e",
|
|
ConcurrencyStamp = "cbb91441-0a5b-4d7a-88f7-739b5339365c",
|
|
Name = "SuperAdmin",
|
|
NormalizedName = "SUPERADMIN"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("varchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = "655b49ee-4e4f-467e-b5b1-927d8cf4fd36",
|
|
AccessFailedCount = 0,
|
|
ConcurrencyStamp = "25f371d7-c9fc-4b7a-bedc-fc02fb9402b0",
|
|
Email = "samuele.locatelli@egalware.com",
|
|
EmailConfirmed = true,
|
|
LockoutEnabled = false,
|
|
NormalizedEmail = "SAMUELE.LOCATELLI@EGALWARE.COM",
|
|
NormalizedUserName = "SAMUELE.LOCATELLI@EGALWARE.COM",
|
|
PasswordHash = "AQAAAAEAACcQAAAAEFTIbK5uhgIKXFvdYGv8QhefFh4kG9sHX1EPcpPrCmqf2xpfwm6qaUCHSKxvR8EfLw==",
|
|
PhoneNumberConfirmed = false,
|
|
SecurityStamp = "8200bcdd-2b13-4cd3-a81c-3c5598d6b5f6",
|
|
TwoFactorEnabled = false,
|
|
UserName = "samuele.locatelli@egalware.com"
|
|
},
|
|
new
|
|
{
|
|
Id = "75122e30-0933-4538-aee5-a4193b60fc91",
|
|
AccessFailedCount = 0,
|
|
ConcurrencyStamp = "1be7030f-bb4d-41ae-ae10-0fb3e8e11804",
|
|
Email = "emmanuele.sassi@egalware.com",
|
|
EmailConfirmed = true,
|
|
LockoutEnabled = false,
|
|
NormalizedEmail = "EMMANUELE.SASSI@EGALWARE.COM",
|
|
NormalizedUserName = "EMMANUELE.SASSI@EGALWARE.COM",
|
|
PasswordHash = "AQAAAAEAACcQAAAAEANSSGEvLhSbYhJevBDO/Aoq0brwvn1KU5Sv/PJdNCE0+9ZyzGXXyQ+qTJR9gzWS1w==",
|
|
PhoneNumberConfirmed = false,
|
|
SecurityStamp = "62ed1518-5c7a-4d22-85e9-8bdd54a086ff",
|
|
TwoFactorEnabled = false,
|
|
UserName = "emmanuele.sassi@egalware.com"
|
|
},
|
|
new
|
|
{
|
|
Id = "5d532138-4470-466c-9d89-0c968e6bde1e",
|
|
AccessFailedCount = 0,
|
|
ConcurrencyStamp = "bf75f82a-4fc5-4bfd-8244-9e03f606387b",
|
|
Email = "luca.mazzoleni@egalware.com",
|
|
EmailConfirmed = true,
|
|
LockoutEnabled = false,
|
|
NormalizedEmail = "LUCA.MAZZOLENI@EGALWARE.COM",
|
|
NormalizedUserName = "LUCA.MAZZOLENI@EGALWARE.COM",
|
|
PasswordHash = "AQAAAAEAACcQAAAAEMXSnNBKQhXsCw+CDzgYLKnYk6hsS/sHzOu0kk9C7buY/B9lIQf8dH7F8AXnOp25mA==",
|
|
PhoneNumberConfirmed = false,
|
|
SecurityStamp = "c974de3d-d0d5-45c4-b685-02b935ada41c",
|
|
TwoFactorEnabled = false,
|
|
UserName = "luca.mazzoleni@egalware.com"
|
|
},
|
|
new
|
|
{
|
|
Id = "ed350b67-b800-4800-9d4e-f2726d836eb5",
|
|
AccessFailedCount = 0,
|
|
ConcurrencyStamp = "bd182360-ce6a-400a-b295-f42bb5e5abf2",
|
|
Email = "info@egalware.com",
|
|
EmailConfirmed = true,
|
|
LockoutEnabled = false,
|
|
NormalizedEmail = "INFO@EGALWARE.COM",
|
|
NormalizedUserName = "INFO@EGALWARE.COM",
|
|
PasswordHash = "AQAAAAEAACcQAAAAEEqp3H7Tbc/HpqkAJuuZH85PLTWxx0x1vrZI9qpDRLSbSowBKlQqmrc1whRPledpbg==",
|
|
PhoneNumberConfirmed = false,
|
|
SecurityStamp = "7aa1ab48-a654-42ec-b7ba-8f34d90edde7",
|
|
TwoFactorEnabled = false,
|
|
UserName = "info@egalware.com"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserLogins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("RoleId")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
UserId = "655b49ee-4e4f-467e-b5b1-927d8cf4fd36",
|
|
RoleId = "c2a01f68-6720-48e9-87c2-433aa44d230e"
|
|
},
|
|
new
|
|
{
|
|
UserId = "75122e30-0933-4538-aee5-a4193b60fc91",
|
|
RoleId = "c2a01f68-6720-48e9-87c2-433aa44d230e"
|
|
},
|
|
new
|
|
{
|
|
UserId = "5d532138-4470-466c-9d89-0c968e6bde1e",
|
|
RoleId = "dcc6b28b-b0cb-4eb3-a8ce-2dd24ab95037"
|
|
},
|
|
new
|
|
{
|
|
UserId = "ed350b67-b800-4800-9d4e-f2726d836eb5",
|
|
RoleId = "dcc6b28b-b0cb-4eb3-a8ce-2dd24ab95037"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("varchar(128)");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|