hanyadikhetvan-dotnethf/HanyadikHetVan/Migrations/ApplicationDbContextModelSnapshot.cs

380 lines
14 KiB
C#
Raw Permalink Normal View History

2021-05-03 01:30:06 +02:00
// <auto-generated />
using System;
using HanyadikHetVan.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2021-06-08 17:12:42 +02:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2021-05-03 01:30:06 +02:00
2021-06-08 17:12:42 +02:00
namespace HanyadikHetVan.Migrations
2021-05-03 01:30:06 +02:00
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2021-06-08 17:12:42 +02:00
.HasAnnotation("Relational:MaxIdentifierLength", 63)
2021-05-19 04:33:53 +02:00
.HasAnnotation("ProductVersion", "5.0.6")
2021-06-08 17:12:42 +02:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-03 01:30:06 +02:00
2021-05-19 17:56:56 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.FunFact", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2021-06-08 17:12:42 +02:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-19 17:56:56 +02:00
b.Property<string>("Fact")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
b.Property<double>("FunFactor")
2021-06-08 17:12:42 +02:00
.HasColumnType("double precision");
2021-05-19 17:56:56 +02:00
b.Property<int>("WeeklyTimeSpanId")
2021-06-08 17:12:42 +02:00
.HasColumnType("integer");
2021-05-19 17:56:56 +02:00
b.HasKey("Id");
b.HasIndex("WeeklyTimeSpanId");
b.ToTable("FunFacts");
});
2021-05-03 01:30:06 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.Pause", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2021-06-08 17:12:42 +02:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-03 01:30:06 +02:00
b.Property<DateTime>("Enddate")
2021-06-08 17:12:42 +02:00
.HasColumnType("timestamp without time zone");
2021-05-03 01:30:06 +02:00
b.Property<DateTime>("Startdate")
2021-06-08 17:12:42 +02:00
.HasColumnType("timestamp without time zone");
2021-05-03 01:30:06 +02:00
b.Property<int>("WeeklyTimeSpanId")
2021-06-08 17:12:42 +02:00
.HasColumnType("integer");
2021-05-03 01:30:06 +02:00
b.HasKey("Id");
b.HasIndex("WeeklyTimeSpanId");
b.ToTable("Pauses");
});
2021-05-19 17:56:56 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.User", b =>
2021-05-19 04:33:53 +02:00
{
2021-05-19 17:56:56 +02:00
b.Property<string>("Id")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 04:33:53 +02:00
2021-05-19 17:56:56 +02:00
b.Property<int>("AccessFailedCount")
2021-06-08 17:12:42 +02:00
.HasColumnType("integer");
2021-05-19 04:33:53 +02:00
2021-05-19 17:56:56 +02:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
b.Property<string>("Email")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-19 17:56:56 +02:00
b.Property<bool>("EmailConfirmed")
2021-06-08 17:12:42 +02:00
.HasColumnType("boolean");
2021-05-19 17:56:56 +02:00
b.Property<bool>("LockoutEnabled")
2021-06-08 17:12:42 +02:00
.HasColumnType("boolean");
2021-05-19 17:56:56 +02:00
b.Property<DateTimeOffset?>("LockoutEnd")
2021-06-08 17:12:42 +02:00
.HasColumnType("timestamp with time zone");
2021-05-19 17:56:56 +02:00
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-19 17:56:56 +02:00
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-19 17:56:56 +02:00
b.Property<string>("PasswordHash")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
b.Property<string>("PhoneNumber")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
b.Property<bool>("PhoneNumberConfirmed")
2021-06-08 17:12:42 +02:00
.HasColumnType("boolean");
2021-05-19 17:56:56 +02:00
b.Property<string>("SecurityStamp")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
b.Property<bool>("TwoFactorEnabled")
2021-06-08 17:12:42 +02:00
.HasColumnType("boolean");
2021-05-19 17:56:56 +02:00
b.Property<string>("UserName")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-19 04:33:53 +02:00
b.HasKey("Id");
2021-05-19 17:56:56 +02:00
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
2021-05-19 04:33:53 +02:00
2021-05-19 17:56:56 +02:00
b.HasIndex("NormalizedUserName")
.IsUnique()
2021-06-08 17:12:42 +02:00
.HasDatabaseName("UserNameIndex");
2021-05-19 17:56:56 +02:00
b.ToTable("AspNetUsers");
2021-05-19 04:33:53 +02:00
});
2021-05-03 01:30:06 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.WeeklyTimeSpan", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2021-06-08 17:12:42 +02:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-03 01:30:06 +02:00
b.Property<DateTime>("Startdate")
2021-06-08 17:12:42 +02:00
.HasColumnType("timestamp without time zone");
2021-05-03 01:30:06 +02:00
2021-05-19 17:56:56 +02:00
b.Property<string>("UserId")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-19 17:56:56 +02:00
2021-05-03 01:30:06 +02:00
b.HasKey("Id");
2021-05-19 17:56:56 +02:00
b.HasIndex("UserId");
2021-05-19 04:33:53 +02:00
2021-05-03 01:30:06 +02:00
b.ToTable("WeeklyTimeSpans");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("Name")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-03 01:30:06 +02:00
b.Property<string>("NormalizedName")
.HasMaxLength(256)
2021-06-08 17:12:42 +02:00
.HasColumnType("character varying(256)");
2021-05-03 01:30:06 +02:00
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
2021-06-08 17:12:42 +02:00
.HasDatabaseName("RoleNameIndex");
2021-05-03 01:30:06 +02:00
b.ToTable("AspNetRoles");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2021-06-08 17:12:42 +02:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-03 01:30:06 +02:00
b.Property<string>("ClaimType")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("ClaimValue")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("RoleId")
.IsRequired()
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2021-06-08 17:12:42 +02:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-05-03 01:30:06 +02:00
b.Property<string>("ClaimType")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("ClaimValue")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("UserId")
.IsRequired()
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("ProviderKey")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("ProviderDisplayName")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("UserId")
.IsRequired()
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("RoleId")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("LoginProvider")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("Name")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.Property<string>("Value")
2021-06-08 17:12:42 +02:00
.HasColumnType("text");
2021-05-03 01:30:06 +02:00
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens");
});
2021-05-19 17:56:56 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.FunFact", b =>
2021-05-03 01:30:06 +02:00
{
b.HasOne("HanyadikHetVan.Data.Entities.WeeklyTimeSpan", "WeeklyTimeSpan")
2021-05-19 17:56:56 +02:00
.WithMany("FunFacts")
2021-05-03 01:30:06 +02:00
.HasForeignKey("WeeklyTimeSpanId")
2021-05-20 01:36:54 +02:00
.OnDelete(DeleteBehavior.ClientCascade)
2021-05-03 01:30:06 +02:00
.IsRequired();
b.Navigation("WeeklyTimeSpan");
});
2021-05-19 17:56:56 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.Pause", b =>
2021-05-19 04:33:53 +02:00
{
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.WeeklyTimeSpan", "WeeklyTimeSpan")
.WithMany("Pauses")
.HasForeignKey("WeeklyTimeSpanId")
2021-05-20 01:36:54 +02:00
.OnDelete(DeleteBehavior.ClientCascade)
2021-05-19 17:56:56 +02:00
.IsRequired();
2021-05-19 04:33:53 +02:00
2021-05-19 17:56:56 +02:00
b.Navigation("WeeklyTimeSpan");
2021-05-19 04:33:53 +02:00
});
modelBuilder.Entity("HanyadikHetVan.Data.Entities.WeeklyTimeSpan", b =>
{
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.User", "User")
.WithMany("WeeklyTimeSpans")
2021-05-20 01:36:54 +02:00
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.ClientCascade);
2021-05-19 04:33:53 +02:00
2021-05-19 17:56:56 +02:00
b.Navigation("User");
2021-05-19 04:33:53 +02:00
});
2021-05-03 01:30:06 +02:00
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 =>
{
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.User", null)
2021-05-03 01:30:06 +02:00
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.User", null)
2021-05-03 01:30:06 +02:00
.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();
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.User", null)
2021-05-03 01:30:06 +02:00
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
2021-05-19 17:56:56 +02:00
b.HasOne("HanyadikHetVan.Data.Entities.User", null)
2021-05-03 01:30:06 +02:00
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
2021-05-19 17:56:56 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.User", b =>
{
b.Navigation("WeeklyTimeSpans");
});
2021-05-03 01:30:06 +02:00
modelBuilder.Entity("HanyadikHetVan.Data.Entities.WeeklyTimeSpan", b =>
{
2021-05-19 17:56:56 +02:00
b.Navigation("FunFacts");
2021-05-03 01:30:06 +02:00
b.Navigation("Pauses");
});
#pragma warning restore 612, 618
}
}
}