Refactor namespaces to follow new naming convention and add item model classes
This commit is contained in:
24
Migrations/20250201173643_Initial.Designer.cs
generated
24
Migrations/20250201173643_Initial.Designer.cs
generated
@@ -4,11 +4,11 @@ using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using pet_companion_api.Data;
|
||||
using Pet.Companion.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace pet_companion_api.Migrations
|
||||
namespace Pet.Companion.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
[Migration("20250201173643_Initial")]
|
||||
@@ -20,7 +20,7 @@ namespace pet_companion_api.Migrations
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.1");
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Pet", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -59,7 +59,7 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("Pets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.PetStats", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -87,7 +87,7 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("PetStats");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Resources", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -109,25 +109,25 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("Resources");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.PetStats", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
b.HasOne("Pet.Companion.Models.Pet", null)
|
||||
.WithOne("Stats")
|
||||
.HasForeignKey("pet_companion_api.Models.PetStats", "PetId")
|
||||
.HasForeignKey("Pet.Companion.Models.PetStats", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Resources", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
b.HasOne("Pet.Companion.Models.Pet", null)
|
||||
.WithOne("Resources")
|
||||
.HasForeignKey("pet_companion_api.Models.Resources", "PetId")
|
||||
.HasForeignKey("Pet.Companion.Models.Resources", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Pet", b =>
|
||||
{
|
||||
b.Navigation("Resources")
|
||||
.IsRequired();
|
||||
|
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace pet_companion_api.Migrations
|
||||
namespace Pet.Companion.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Initial : Migration
|
||||
|
@@ -3,11 +3,11 @@ using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using pet_companion_api.Data;
|
||||
using Pet.Companion.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace pet_companion_api.Migrations
|
||||
namespace Pet.Companion.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
||||
@@ -17,7 +17,7 @@ namespace pet_companion_api.Migrations
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.1");
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Pet", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -56,7 +56,7 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("Pets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.PetStats", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -84,7 +84,7 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("PetStats");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Resources", b =>
|
||||
{
|
||||
b.Property<string>("PetId")
|
||||
.HasColumnType("TEXT");
|
||||
@@ -106,25 +106,25 @@ namespace pet_companion_api.Migrations
|
||||
b.ToTable("Resources");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.PetStats", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.PetStats", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
b.HasOne("Pet.Companion.Models.Pet", null)
|
||||
.WithOne("Stats")
|
||||
.HasForeignKey("pet_companion_api.Models.PetStats", "PetId")
|
||||
.HasForeignKey("Pet.Companion.Models.PetStats", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Resources", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Resources", b =>
|
||||
{
|
||||
b.HasOne("pet_companion_api.Models.Pet", null)
|
||||
b.HasOne("Pet.Companion.Models.Pet", null)
|
||||
.WithOne("Resources")
|
||||
.HasForeignKey("pet_companion_api.Models.Resources", "PetId")
|
||||
.HasForeignKey("Pet.Companion.Models.Resources", "PetId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("pet_companion_api.Models.Pet", b =>
|
||||
modelBuilder.Entity("Pet.Companion.Models.Pet", b =>
|
||||
{
|
||||
b.Navigation("Resources")
|
||||
.IsRequired();
|
||||
|
Reference in New Issue
Block a user