423 lines
16 KiB
C#
423 lines
16 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Auth.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace Domain.Migrations
|
|
{
|
|
[DbContext(typeof(Context))]
|
|
partial class ContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.7")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasMaxLength(13)
|
|
.HasColumnType("character varying(13)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("AspNetRoles", (string)null);
|
|
|
|
b.HasDiscriminator().HasValue("IdentityRole");
|
|
|
|
b.UseTphMappingStrategy();
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = "64fb5756-3278-4a10-9fb7-56b8c171a50f",
|
|
ConcurrencyStamp = "1c17731b-2ae7-43d5-91ba-d29eb67f531d",
|
|
Name = "User",
|
|
NormalizedName = "USER"
|
|
},
|
|
new
|
|
{
|
|
Id = "f84f7631-463a-4ee3-80ec-f196f621c144",
|
|
ConcurrencyStamp = "fc15c07c-d1e3-423e-9feb-d8ca6e27a9a2",
|
|
Name = "Moderator",
|
|
NormalizedName = "MODERATOR"
|
|
},
|
|
new
|
|
{
|
|
Id = "c0cc1518-1709-48f1-8260-9ba582e0dd9d",
|
|
ConcurrencyStamp = "d251ab61-bff0-4d33-8f39-8a9980edd897",
|
|
Name = "Admin",
|
|
NormalizedName = "ADMIN"
|
|
},
|
|
new
|
|
{
|
|
Id = "26ece933-021a-442a-9d22-9c331ecc5e59",
|
|
ConcurrencyStamp = "fd82451c-b583-4768-9601-efc7e1b6d408",
|
|
Name = "SuperAdmin",
|
|
NormalizedName = "SUPERADMIN"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasMaxLength(13)
|
|
.HasColumnType("character varying(13)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
|
|
b.HasDiscriminator().HasValue("IdentityUser");
|
|
|
|
b.UseTphMappingStrategy();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
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("text");
|
|
|
|
b.Property<string>("RoleId")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
UserId = "67eefc0a-cb03-411e-8557-6b4fe4c40fa8",
|
|
RoleId = "26ece933-021a-442a-9d22-9c331ecc5e59"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Auth.Domain.Entities.Role", b =>
|
|
{
|
|
b.HasBaseType("Microsoft.AspNetCore.Identity.IdentityRole");
|
|
|
|
b.HasDiscriminator().HasValue("Role");
|
|
});
|
|
|
|
modelBuilder.Entity("Auth.Domain.Entities.HR.AppUser", b =>
|
|
{
|
|
b.HasBaseType("Microsoft.AspNetCore.Identity.IdentityUser");
|
|
|
|
b.Property<string>("Address")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Building")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Department")
|
|
.HasColumnType("text");
|
|
|
|
b.PrimitiveCollection<List<string>>("Favorites")
|
|
.IsRequired()
|
|
.HasColumnType("text[]");
|
|
|
|
b.Property<int?>("Flat")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int?>("Floor")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("Holidays")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("JobTitle")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PhotoPath")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("RefreshToken")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime?>("RefreshTokenExpiryDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<double?>("SalaryAmount")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<string>("Street")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<double>("locationLati")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<double>("locationLong")
|
|
.HasColumnType("double precision");
|
|
|
|
b.HasDiscriminator().HasValue("AppUser");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = "67eefc0a-cb03-411e-8557-6b4fe4c40fa8",
|
|
AccessFailedCount = 0,
|
|
ConcurrencyStamp = "4b5b25cb-4cb0-4c01-b7b7-e88a74c9dccb",
|
|
Email = "said.amir.kattan@outlook.com",
|
|
EmailConfirmed = true,
|
|
LockoutEnabled = false,
|
|
NormalizedEmail = "SAID.AMIR.KATTAN@OUTLOOK.COM",
|
|
NormalizedUserName = "SAID.AMIR.KATTAN@OUTLOOK.COM",
|
|
PasswordHash = "AQAAAAIAAYagAAAAEIXlJnxz7XY6hqaQji0dvUgFH7Km+uPKtqohXEEtouUNLfuUR8w7OcrJsu/MJxLLTA==",
|
|
PhoneNumber = "01231231322",
|
|
PhoneNumberConfirmed = false,
|
|
SecurityStamp = "ab41ea0c-937b-48db-b6d2-8065d8a7935f",
|
|
TwoFactorEnabled = false,
|
|
UserName = "said.amir.kattan@outlook.com",
|
|
Building = "Building 123",
|
|
Favorites = new List<string>(),
|
|
Holidays = 2,
|
|
Name = "said",
|
|
PhotoPath = "Test",
|
|
locationLati = 0.0,
|
|
locationLong = 0.0
|
|
});
|
|
});
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|