// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PetCompanion.Data; #nullable disable namespace PetCompanion.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "9.0.1"); modelBuilder.Entity("PetCompanion.Models.Pet", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("BasicActionCooldown") .HasColumnType("TEXT"); b.Property("Class") .HasColumnType("INTEGER"); b.Property("GatherActionSince") .HasColumnType("TEXT"); b.Property("IsDead") .HasColumnType("INTEGER"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("PetBasicAction") .HasColumnType("INTEGER"); b.Property("PetGatherAction") .HasColumnType("INTEGER"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Pets"); }); modelBuilder.Entity("PetCompanion.Models.PetStats", b => { b.Property("PetId") .HasColumnType("TEXT"); b.Property("Charisma") .HasColumnType("INTEGER"); b.Property("Intelligence") .HasColumnType("INTEGER"); b.Property("MaxCharisma") .HasColumnType("INTEGER"); b.Property("MaxIntelligence") .HasColumnType("INTEGER"); b.Property("MaxStrength") .HasColumnType("INTEGER"); b.Property("Strength") .HasColumnType("INTEGER"); b.HasKey("PetId"); b.ToTable("PetStats"); }); modelBuilder.Entity("PetCompanion.Models.Resources", b => { b.Property("PetId") .HasColumnType("TEXT"); b.Property("Food") .HasColumnType("INTEGER"); b.Property("Gold") .HasColumnType("INTEGER"); b.Property("Junk") .HasColumnType("INTEGER"); b.Property("Wisdom") .HasColumnType("INTEGER"); b.HasKey("PetId"); b.ToTable("Resources"); }); modelBuilder.Entity("PetCompanion.Models.PetStats", b => { b.HasOne("PetCompanion.Models.Pet", null) .WithOne("Stats") .HasForeignKey("PetCompanion.Models.PetStats", "PetId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("PetCompanion.Models.Resources", b => { b.HasOne("PetCompanion.Models.Pet", null) .WithOne("Resources") .HasForeignKey("PetCompanion.Models.Resources", "PetId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("PetCompanion.Models.Pet", b => { b.Navigation("Resources") .IsRequired(); b.Navigation("Stats") .IsRequired(); }); #pragma warning restore 612, 618 } } }