// using System; using Hutopy.Modules.Contents.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Hutopy.Modules.Contents.Migrations { [DbContext(typeof(ContentsDbContext))] partial class ContentsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Content") .HasAnnotation("ProductVersion", "9.0.3") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Hutopy.Modules.Contents.Data.Album", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("timestamp with time zone") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("CreatedBy") .HasColumnType("uuid"); b.Property("DeletedAt") .HasColumnType("timestamp with time zone"); b.Property("DeletedBy") .HasColumnType("uuid"); b.Property("IsDeleted") .ValueGeneratedOnAddOrUpdate() .HasColumnType("boolean") .HasComputedColumnSql("\"DeletedAt\" IS NOT NULL", true); b.Property("Title") .IsRequired() .HasMaxLength(255) .HasColumnType("character varying(255)"); b.HasKey("Id"); b.ToTable("Albums", "Content"); }); modelBuilder.Entity("Hutopy.Modules.Contents.Data.AlbumPhoto", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AlbumId") .HasColumnType("uuid"); b.Property("Caption") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("timestamp with time zone") .HasDefaultValueSql("CURRENT_TIMESTAMP"); b.Property("CreatedBy") .HasColumnType("uuid"); b.Property("DeletedAt") .HasColumnType("timestamp with time zone"); b.Property("DeletedBy") .HasColumnType("uuid"); b.Property("IsDeleted") .ValueGeneratedOnAddOrUpdate() .HasColumnType("boolean") .HasComputedColumnSql("\"DeletedAt\" IS NOT NULL", true); b.Property("Order") .HasColumnType("integer"); b.Property("OriginalUrl") .IsRequired() .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b.Property("ThumbnailUrl") .IsRequired() .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b.HasKey("Id"); b.HasIndex("AlbumId"); b.ToTable("AlbumPhotos", "Content"); }); modelBuilder.Entity("Hutopy.Modules.Contents.Data.AlbumPhoto", b => { b.HasOne("Hutopy.Modules.Contents.Data.Album", "Album") .WithMany("Photos") .HasForeignKey("AlbumId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Album"); }); modelBuilder.Entity("Hutopy.Modules.Contents.Data.Album", b => { b.Navigation("Photos"); }); #pragma warning restore 612, 618 } } }