Files
webdoorcreator/WebDoorCreator.Data/Migrations/20230309075354_AddAdmins.Designer.cs
2023-05-31 08:36:56 +02:00

393 lines
16 KiB
C#

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using WebDoorCreator.Data;
#nullable disable
namespace WebDoorCreator.Data.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20230309075354_AddAdmins")]
partial class AddAdmins
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.14")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles", (string)null);
b.HasData(
new
{
Id = "1f63e241-4a96-437c-9af9-55748e0f6ed5",
ConcurrencyStamp = "684c9e79-7c20-4e25-ade2-66529980ef38",
Name = "Undef",
NormalizedName = "UNDEF"
},
new
{
Id = "df6b65a0-9b15-49df-b0d0-06b22ef75f08",
ConcurrencyStamp = "e788b4b6-9f00-449c-a5f8-9105c8bd734e",
Name = "SuperAdmin",
NormalizedName = "SUPERADMIN"
},
new
{
Id = "0fe4015b-cf98-4229-a120-57eb9c2ca945",
ConcurrencyStamp = "ccb4b655-3619-463d-a702-d0c9497e772c",
Name = "DcaAdmin",
NormalizedName = "DCAADMIN"
},
new
{
Id = "ade81cd7-b091-4691-96a2-5c29d28bda2e",
ConcurrencyStamp = "ba17c203-0eea-4549-893f-766dc7b9381f",
Name = "CompAdmin",
NormalizedName = "COMPADMIN"
},
new
{
Id = "34e09fbe-45db-4225-af17-793b4a0f90a1",
ConcurrencyStamp = "3895c7f6-8f63-4c30-9f93-0af0504f5e91",
Name = "CompUser",
NormalizedName = "COMPUSER"
},
new
{
Id = "9dfb7941-838f-483e-b1c2-10e01abb3d2d",
ConcurrencyStamp = "15368102-cd08-46cf-a376-dbbc8c6a8f71",
Name = "User",
NormalizedName = "USER"
});
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers", (string)null);
b.HasData(
new
{
Id = "16627235-f84e-43c2-8e14-88906a019527",
AccessFailedCount = 0,
ConcurrencyStamp = "85daf496-3f42-4797-b2e1-a06a3cbbb43b",
Email = "zaccaria.majid@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "ZACCARIA.MAJID@EGALWARE.COM",
NormalizedUserName = "ZACCARIA.MAJID@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAECIETTMPjm03IOW5dZAUeWleVETwFLVU743s1wVAyyL1yZ3GxBU0tNOKzrljjLEDDw==",
PhoneNumberConfirmed = false,
SecurityStamp = "ac24ad17-7896-4a0e-807b-ec7224618c69",
TwoFactorEnabled = false,
UserName = "zaccaria.majid@egalware.com"
},
new
{
Id = "f15d1e26-d995-4c46-86ca-6a67462424f5",
AccessFailedCount = 0,
ConcurrencyStamp = "1915e8bb-be14-4740-898a-ebfe59b128ff",
Email = "samuele.locatelli@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "SAMUELE.LOCATELLI@EGALWARE.COM",
NormalizedUserName = "SAMUELE.LOCATELLI@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAELF/Z/vSH1yOO3AATBL84KD+GZViNyRbmICrvtNS/IprAm0Va56FXmgxoCTuWVAjwg==",
PhoneNumberConfirmed = false,
SecurityStamp = "55b9e573-b151-47eb-9977-5cffc3de94b7",
TwoFactorEnabled = false,
UserName = "samuele.locatelli@egalware.com"
},
new
{
Id = "156dadc4-921a-4eee-8358-2cfff737a380",
AccessFailedCount = 0,
ConcurrencyStamp = "a4af2f48-b477-499c-a925-34e5660d75c9",
Email = "zaccaria.majid.01@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "ZACCARIA.MAJID.01@EGALWARE.COM",
NormalizedUserName = "ZACCARIA.MAJID.01@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAEAD4/IHpZRIdA2g6OZryf6mnaNuTwu73qw8YOTFofAYVEcqyH3aSb4zWTtNUaZT7Fg==",
PhoneNumberConfirmed = false,
SecurityStamp = "3fd2e7bb-56ed-4f0a-8d80-9b7b8f13f504",
TwoFactorEnabled = false,
UserName = "zaccaria.majid.01@egalware.com"
},
new
{
Id = "33fd9cf3-7621-48ee-9d83-6829b2253795",
AccessFailedCount = 0,
ConcurrencyStamp = "a7e85a3f-0a71-4734-9d94-fbce97f25efd",
Email = "zaccaria.majid.02@egalware.com",
EmailConfirmed = true,
LockoutEnabled = false,
NormalizedEmail = "ZACCARIA.MAJID.02@EGALWARE.COM",
NormalizedUserName = "ZACCARIA.MAJID.02@EGALWARE.COM",
PasswordHash = "AQAAAAEAACcQAAAAEO5UVGTj7Askab70xopfrff3iYAaGpaWU9n6fkJ+goOSvQmpnpnHeFC4Lk0wagKTtQ==",
PhoneNumberConfirmed = false,
SecurityStamp = "c297cc6d-7405-41b4-89f6-891649fd45e8",
TwoFactorEnabled = false,
UserName = "zaccaria.majid.02@egalware.com"
});
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
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("nvarchar(128)");
b.Property<string>("ProviderKey")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
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("nvarchar(450)");
b.Property<string>("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("LoginProvider")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Name")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
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
}
}
}