// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using SOR.Database.Contexts; #nullable disable namespace SOR.Database.Migrations.Catalog { [DbContext(typeof(CatalogDbContext))] partial class CatalogDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("catalog") .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardAnimationBinding", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ActionName") .IsRequired() .HasColumnType("text"); b.Property("AnimationCdnUrl") .IsRequired() .HasColumnType("text"); b.Property("AnimationTrackName") .HasColumnType("text"); b.Property("CardDefinitionId") .HasColumnType("uuid"); b.Property("CastSoundCdnUrl") .HasColumnType("text"); b.Property("ImpactSoundCdnUrl") .HasColumnType("text"); b.Property("IsAiGenerated") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("CardDefinitionId", "ActionName") .IsUnique(); b.ToTable("card_animation_bindings", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardAsset", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AssetType") .IsRequired() .HasColumnType("text"); b.Property("CardDefinitionId") .HasColumnType("uuid"); b.Property("CdnUrl") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsAiGenerated") .HasColumnType("boolean"); b.Property("MimeType") .HasColumnType("text"); b.Property("ModelFacingDirection") .HasColumnType("text"); b.Property("ModelScale") .HasColumnType("real"); b.Property("ModelTintColor") .HasColumnType("text"); b.Property("ModelTintMaskUrl") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("CardDefinitionId", "AssetType"); b.ToTable("card_assets", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardDefinition", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AbilitiesJson") .HasColumnType("jsonb") .HasColumnName("abilities"); b.Property("Affinity") .IsRequired() .HasColumnType("text"); b.Property("AttackType") .HasColumnType("text"); b.Property("CanAttack") .HasColumnType("boolean"); b.Property("CanBeAttacked") .HasColumnType("boolean"); b.Property("CanBeBlocked") .HasColumnType("boolean"); b.Property("CanBeObstructed") .HasColumnType("boolean"); b.Property("CanBeSacrificed") .HasColumnType("boolean"); b.Property("CanDefend") .HasColumnType("boolean"); b.Property("CanMove") .HasColumnType("boolean"); b.Property("CanUseAbility") .HasColumnType("boolean"); b.Property("CardType") .IsRequired() .HasColumnType("text"); b.Property("CollectorNumber") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Damage") .HasColumnType("integer"); b.Property("DefinitionVersion") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasDefaultValue(0L); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("EffectsJson") .HasColumnType("jsonb") .HasColumnName("effects"); b.Property("Genus") .HasColumnType("text[]"); b.Property("IsPublished") .HasColumnType("boolean"); b.Property("IsRetired") .HasColumnType("boolean"); b.Property("MaxAttackRange") .HasColumnType("integer"); b.Property("MaxChannelRange") .HasColumnType("integer"); b.Property("MaxDefense") .HasColumnType("integer"); b.Property("MaxHealth") .HasColumnType("integer"); b.Property("MinAttackRange") .HasColumnType("integer"); b.Property("MinChannelRange") .HasColumnType("integer"); b.Property("MovementPoints") .HasColumnType("integer"); b.Property("MovementType") .HasColumnType("text"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("OtherCostsJson") .HasColumnType("jsonb") .HasColumnName("other_costs"); b.Property("PreviousTierId") .HasColumnType("uuid"); b.Property("Rarity") .IsRequired() .HasColumnType("text"); b.Property("RequiresLos") .HasColumnType("boolean"); b.Property("RetiredAt") .HasColumnType("timestamp with time zone"); b.Property("SetId") .HasColumnType("uuid"); b.Property("SpCost") .HasColumnType("integer"); b.Property("StCost") .HasColumnType("integer"); b.Property("TerramorphaMode") .HasColumnType("text"); b.Property("Tier") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Affinity"); b.HasIndex("CardType"); b.HasIndex("DefinitionVersion"); b.HasIndex("Name"); b.HasIndex("PreviousTierId"); b.HasIndex("Rarity"); b.HasIndex("SetId"); b.HasIndex("IsPublished", "SetId"); b.ToTable("card_definitions", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardSet", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Code") .IsRequired() .HasColumnType("text"); b.Property("Description") .HasColumnType("text"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("ReleaseDate") .HasColumnType("date"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.ToTable("card_sets", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CdnUploadRecord", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ContentType") .HasColumnType("text"); b.Property("IsAiGenerated") .HasColumnType("boolean"); b.Property("ObjectKey") .IsRequired() .HasColumnType("text"); b.Property("Prefix") .IsRequired() .HasColumnType("text"); b.Property("PublicUrl") .IsRequired() .HasColumnType("text"); b.Property("UploadedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("IsAiGenerated"); b.HasIndex("ObjectKey") .IsUnique(); b.HasIndex("Prefix"); b.ToTable("cdn_upload_records", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.GameAudioConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Context") .IsRequired() .HasColumnType("text"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("TrackCdnUrl") .IsRequired() .HasColumnType("text"); b.Property("TrackName") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Context"); b.HasIndex("IsActive"); b.ToTable("game_audio_configs", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.TileModelBinding", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Affinity") .IsRequired() .HasColumnType("text"); b.Property("ModelCdnKey") .IsRequired() .HasColumnType("text"); b.Property("ModelPublicUrl") .IsRequired() .HasColumnType("text"); b.Property("Shape") .IsRequired() .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Affinity", "Shape") .IsUnique(); b.ToTable("tile_model_bindings", "catalog"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardAnimationBinding", b => { b.HasOne("SOR.Database.Entities.Catalog.CardDefinition", "CardDefinition") .WithMany("AnimationBindings") .HasForeignKey("CardDefinitionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CardDefinition"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardAsset", b => { b.HasOne("SOR.Database.Entities.Catalog.CardDefinition", "CardDefinition") .WithMany("Assets") .HasForeignKey("CardDefinitionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CardDefinition"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardDefinition", b => { b.HasOne("SOR.Database.Entities.Catalog.CardDefinition", "PreviousTier") .WithMany() .HasForeignKey("PreviousTierId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("SOR.Database.Entities.Catalog.CardSet", "Set") .WithMany("Cards") .HasForeignKey("SetId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("PreviousTier"); b.Navigation("Set"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardDefinition", b => { b.Navigation("AnimationBindings"); b.Navigation("Assets"); }); modelBuilder.Entity("SOR.Database.Entities.Catalog.CardSet", b => { b.Navigation("Cards"); }); #pragma warning restore 612, 618 } } }