// using System; using Hutopy.Modules.Creators.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Hutopy.Modules.Creators.Migrations { [DbContext(typeof(CreatorsDbContext))] partial class CreatorsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Creators") .HasAnnotation("ProductVersion", "9.0.3") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Hutopy.Modules.Creators.Data.Creator", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("BannerUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); 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("IsStripeChargesEnabled") .HasColumnType("boolean"); b.Property("IsStripeDetailsSubmitted") .HasColumnType("boolean"); b.Property("IsStripePayoutReady") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("PortraitUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b.Property("Slug") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property("StripeAccountId") .HasMaxLength(21) .HasColumnType("character varying(21)"); b.Property("Title") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Verified") .HasColumnType("boolean"); b.HasKey("Id"); b.ToTable("Creators", "Creators"); }); modelBuilder.Entity("Hutopy.Modules.Creators.Data.Slugs", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .HasColumnType("uuid"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property("NormalizedName") .IsRequired() .ValueGeneratedOnAddOrUpdate() .HasMaxLength(128) .HasColumnType("character varying(128)") .HasComputedColumnSql("LOWER(\"Name\")", true); b.Property("ReservedUntil") .HasColumnType("timestamp with time zone"); b.Property("UsedBy") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique(); b.ToTable("Slugs", "Creators"); }); modelBuilder.Entity("Hutopy.Modules.Creators.Data.Creator", b => { b.OwnsOne("Hutopy.Modules.Creators.Data.Presentation", "Presentation", b1 => { b1.Property("CreatorId") .HasColumnType("uuid"); b1.Property("Description") .IsRequired() .HasColumnType("text"); b1.Property("Email") .HasMaxLength(256) .HasColumnType("character varying(256)"); b1.Property("PhoneNumber") .HasMaxLength(256) .HasColumnType("character varying(256)"); b1.Property("VideoUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.HasKey("CreatorId"); b1.ToTable("Presentation", "Creators"); b1.WithOwner() .HasForeignKey("CreatorId"); }); b.OwnsOne("Hutopy.Modules.Creators.Data.Socials", "Socials", b1 => { b1.Property("CreatorId") .HasColumnType("uuid"); b1.Property("FacebookUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("InstagramUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("LinkedInUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("RedditUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("TikTokUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("WebsiteUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("XUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.Property("YoutubeUrl") .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b1.HasKey("CreatorId"); b1.ToTable("Socials", "Creators"); b1.WithOwner() .HasForeignKey("CreatorId"); }); b.Navigation("Presentation") .IsRequired(); b.Navigation("Socials") .IsRequired(); }); #pragma warning restore 612, 618 } } }