Files
magman/MagMan.Data.Admin/Migrations/UserIdentityDb/UserIdentityDbContextModelSnapshot.cs
T
2024-01-11 14:59:48 +01:00

437 lines
18 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("MagMan.Data.Admin.DbModels.TableCount", b =>
{
b.Property<int>("Count")
.HasColumnType("int");
b.Property<string>("TableName")
.IsRequired()
.HasColumnType("longtext");
b.ToTable("DbSetCounts");
});
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 = "82b54f2b-4da8-4e46-83bf-57ffc17cf8ed",
ConcurrencyStamp = "763dedf1-0868-424e-bc0a-1572a548c1d7",
Name = "Undef",
NormalizedName = "UNDEF"
},
new
{
Id = "34ae910e-acaf-46d1-aaa8-279a74c5bc61",
ConcurrencyStamp = "8b90b548-3d22-40c6-95ba-c3fb0ea032a7",
Name = "User",
NormalizedName = "USER"
},
new
{
Id = "8352aca0-c5e8-4a2d-be76-f6cde5f963a1",
ConcurrencyStamp = "63d84be1-17ac-4e8c-9bd7-35e0ed056533",
Name = "Admin",
NormalizedName = "ADMIN"
},
new
{
Id = "285df363-706d-498e-b1ad-4680e141ad01",
ConcurrencyStamp = "365f0dc5-81c1-4deb-945b-58dd8fc9d18a",
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 = "3fac0523-697f-4b42-ac39-82026839ba2c",
AccessFailedCount = 0,
ConcurrencyStamp = "b23608ab-d50a-464d-8db2-8274f088b0ad",
Email = "samuele.locatelli@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "SAMUELE.LOCATELLI@EGALWARE.COM",
NormalizedUserName = "SAMUELE.LOCATELLI@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAEAQsxwpx5DzxcFhzIhUciCtBEHZo/GLlB4HtG49I3gTh/WtXSg9VVl0e5KBmopG9VQ==",
PhoneNumberConfirmed = false,
SecurityStamp = "8f4ecdd7-9078-4345-82bc-7c1570e71387",
TwoFactorEnabled = false,
UserName = "samuele.locatelli@egalware.com"
},
new
{
Id = "238a34e8-7a80-4307-bfcc-41bdc4a39c1f",
AccessFailedCount = 0,
ConcurrencyStamp = "f62ab486-c4e0-450a-8fb4-6905d2e3da64",
Email = "emmanuele.sassi@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "EMMANUELE.SASSI@EGALWARE.COM",
NormalizedUserName = "EMMANUELE.SASSI@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAECZ2BzJe3VOrXIgdmjBrD+JP/HqsV/eFwMO4DaGzAmFPvHG+xxkRFbwRkI2sYoWt8Q==",
PhoneNumberConfirmed = false,
SecurityStamp = "1be739d4-3aed-4a9a-a5c0-80c45a1474a6",
TwoFactorEnabled = false,
UserName = "emmanuele.sassi@egalware.com"
},
new
{
Id = "be261afb-580a-4cb6-a040-c4a335f9ff3a",
AccessFailedCount = 0,
ConcurrencyStamp = "9c306ce8-ec94-49b9-ad24-87b3d9937188",
Email = "luca.mazzoleni@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "LUCA.MAZZOLENI@EGALWARE.COM",
NormalizedUserName = "LUCA.MAZZOLENI@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAEHdDRZVkzBW4qlCF+vvpURb/4bj/b2/kl4+HSEjhbHRAekqX5WMnfJfWMPuyjKrgUg==",
PhoneNumberConfirmed = false,
SecurityStamp = "121bb662-adf9-4cba-bbc8-12bf1d2bc693",
TwoFactorEnabled = false,
UserName = "luca.mazzoleni@egalware.com"
},
new
{
Id = "3282b9f4-5240-4946-a8d0-5570df880642",
AccessFailedCount = 0,
ConcurrencyStamp = "20720e13-89b3-4660-8c6e-1f11e1e730b4",
Email = "info@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "INFO@EGALWARE.COM",
NormalizedUserName = "INFO@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAEDEuPnbPPl/9vc6xg/mvOmyEfvirN5ZNDWu21im+PjvtNQcqvqfc9k3KQxtJKBs5EQ==",
PhoneNumberConfirmed = false,
SecurityStamp = "3bd9e353-ab86-47b2-85da-d857e618f44e",
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 = "3fac0523-697f-4b42-ac39-82026839ba2c",
RoleId = "34ae910e-acaf-46d1-aaa8-279a74c5bc61"
},
new
{
UserId = "3fac0523-697f-4b42-ac39-82026839ba2c",
RoleId = "8352aca0-c5e8-4a2d-be76-f6cde5f963a1"
},
new
{
UserId = "3fac0523-697f-4b42-ac39-82026839ba2c",
RoleId = "285df363-706d-498e-b1ad-4680e141ad01"
},
new
{
UserId = "238a34e8-7a80-4307-bfcc-41bdc4a39c1f",
RoleId = "34ae910e-acaf-46d1-aaa8-279a74c5bc61"
},
new
{
UserId = "238a34e8-7a80-4307-bfcc-41bdc4a39c1f",
RoleId = "8352aca0-c5e8-4a2d-be76-f6cde5f963a1"
},
new
{
UserId = "238a34e8-7a80-4307-bfcc-41bdc4a39c1f",
RoleId = "285df363-706d-498e-b1ad-4680e141ad01"
},
new
{
UserId = "be261afb-580a-4cb6-a040-c4a335f9ff3a",
RoleId = "34ae910e-acaf-46d1-aaa8-279a74c5bc61"
},
new
{
UserId = "be261afb-580a-4cb6-a040-c4a335f9ff3a",
RoleId = "8352aca0-c5e8-4a2d-be76-f6cde5f963a1"
},
new
{
UserId = "be261afb-580a-4cb6-a040-c4a335f9ff3a",
RoleId = "285df363-706d-498e-b1ad-4680e141ad01"
},
new
{
UserId = "3282b9f4-5240-4946-a8d0-5570df880642",
RoleId = "34ae910e-acaf-46d1-aaa8-279a74c5bc61"
},
new
{
UserId = "3282b9f4-5240-4946-a8d0-5570df880642",
RoleId = "8352aca0-c5e8-4a2d-be76-f6cde5f963a1"
});
});
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
}
}
}