Refactor pet action management: rename PetAction to PetBasicAction, update related properties and methods, and enhance pet stats with maximum values.
This commit is contained in:
141
Migrations/20250201173643_Initial.Designer.cs
generated
Normal file
141
Migrations/20250201173643_Initial.Designer.cs
generated
Normal file
@@ -0,0 +1,141 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using pet_companion_api.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace pet_companion_api.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
[Migration("20250201173643_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.1");
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("BasicActionCooldown")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("Class")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTime>("GatherActionSince")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsDead")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("PetBasicAction")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("PetGatherAction")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Pets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("Charisma")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Intelligence")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("MaxCharisma")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("MaxIntelligence")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("MaxStrength")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Strength")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("PetId");
|
||||
|
||||
b.ToTable("PetStats");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("Food")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Gold")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Junk")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Wisdom")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("PetId");
|
||||
|
||||
b.ToTable("Resources");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
.WithOne("Stats")
|
||||
.HasForeignKey("pet_companion_api.Models.PetStats", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
.WithOne("Resources")
|
||||
.HasForeignKey("pet_companion_api.Models.Resources", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
{
|
||||
b.Navigation("Resources")
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Stats")
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user