// using System; using CodeLiturgy.Domain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace CodeLiturgy.Views.Migrations.SiteDb { [DbContext(typeof(SiteDbContext))] [Migration("20221118003609_first")] partial class first { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("CodeLiturgy.Data.Application.Site", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("text"); b.Property("CreatedDate") .HasColumnType("timestamp with time zone"); b.Property("Domain") .HasColumnType("text"); b.Property("EnvironmentId") .HasColumnType("text"); b.Property("EnvironmentType") .HasColumnType("integer"); b.Property("LastChanged") .HasColumnType("timestamp with time zone"); b.Property("UrlAddress") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("EnvironmentId"); b.ToTable("Sites"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.SiteEnvironment", b => { b.Property("Id") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("UserId") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("Environments"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.Users.ApplicationUser", b => { b.Property("Id") .HasColumnType("text"); b.Property("AccessFailedCount") .HasColumnType("integer"); b.Property("ConcurrencyStamp") .HasColumnType("text"); b.Property("Email") .HasColumnType("text"); b.Property("EmailConfirmed") .HasColumnType("boolean"); b.Property("LockoutEnabled") .HasColumnType("boolean"); b.Property("LockoutEnd") .HasColumnType("timestamp with time zone"); b.Property("NormalizedEmail") .HasColumnType("text"); b.Property("NormalizedUserName") .HasColumnType("text"); b.Property("PasswordHash") .HasColumnType("text"); b.Property("PhoneNumber") .HasColumnType("text"); b.Property("PhoneNumberConfirmed") .HasColumnType("boolean"); b.Property("SecurityStamp") .HasColumnType("text"); b.Property("TwoFactorEnabled") .HasColumnType("boolean"); b.Property("UserName") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("ApplicationUser"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.Site", b => { b.HasOne("CodeLiturgy.Data.Application.SiteEnvironment", "Environment") .WithMany("Sites") .HasForeignKey("EnvironmentId"); b.Navigation("Environment"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.SiteEnvironment", b => { b.HasOne("CodeLiturgy.Data.Application.Users.ApplicationUser", "User") .WithMany("Environments") .HasForeignKey("UserId"); b.Navigation("User"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.SiteEnvironment", b => { b.Navigation("Sites"); }); modelBuilder.Entity("CodeLiturgy.Data.Application.Users.ApplicationUser", b => { b.Navigation("Environments"); }); #pragma warning restore 612, 618 } } }