// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using YesChef.Api.Data; #nullable disable namespace YesChef.Api.Migrations { [DbContext(typeof(YesChefDb))] partial class YesChefDbModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("YesChef.Api.Entities.Family", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("InviteCode") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("InviteCode") .IsUnique(); b.ToTable("Families"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyMembership", b => { b.Property("UserId") .HasColumnType("integer"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("JoinedAt") .HasColumnType("timestamp with time zone"); b.Property("Role") .HasColumnType("integer"); b.HasKey("UserId", "FamilyId"); b.HasIndex("FamilyId"); b.ToTable("FamilyMemberships"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyProduct", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Brand") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Notes") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.HasKey("Id"); b.HasIndex("FamilyId", "Name") .IsUnique(); b.ToTable("FamilyProducts"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyProductOverride", b => { b.Property("FamilyId") .HasColumnType("integer"); b.Property("ProductId") .HasColumnType("integer"); b.Property("Brand") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Name") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Notes") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("FamilyId", "ProductId"); b.HasIndex("ProductId"); b.ToTable("FamilyProductOverrides"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyUnitOfMeasure", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Abbreviation") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("Category") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("PluralName") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SingularName") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SortOrder") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("FamilyId", "Abbreviation") .IsUnique(); b.ToTable("FamilyUnitsOfMeasure"); }); modelBuilder.Entity("YesChef.Api.Entities.Invite", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ConsumedAt") .HasColumnType("timestamp with time zone"); b.Property("ConsumedByUserId") .HasColumnType("integer"); b.Property("Email") .IsRequired() .HasMaxLength(254) .HasColumnType("character varying(254)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("IssuedAt") .HasColumnType("timestamp with time zone"); b.Property("IssuedByUserId") .HasColumnType("integer"); b.Property("TokenHash") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.HasKey("Id"); b.HasIndex("ConsumedByUserId"); b.HasIndex("IssuedByUserId"); b.HasIndex("TokenHash") .IsUnique(); b.HasIndex("FamilyId", "ConsumedAt"); b.ToTable("Invites"); }); modelBuilder.Entity("YesChef.Api.Entities.PasswordResetToken", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ConsumedAt") .HasColumnType("timestamp with time zone"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IssuedAt") .HasColumnType("timestamp with time zone"); b.Property("TokenHash") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("UserId") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("TokenHash") .IsUnique(); b.HasIndex("UserId", "ConsumedAt"); b.ToTable("PasswordResetTokens"); }); modelBuilder.Entity("YesChef.Api.Entities.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Brand") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Notes") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique(); b.ToTable("Products"); }); modelBuilder.Entity("YesChef.Api.Entities.ProductStoreSection", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FamilyId") .HasColumnType("integer"); b.Property("FamilyProductId") .HasColumnType("integer"); b.Property("ProductId") .HasColumnType("integer"); b.Property("StoreId") .HasColumnType("integer"); b.Property("StoreSectionId") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("FamilyProductId"); b.HasIndex("ProductId"); b.HasIndex("StoreId"); b.HasIndex("StoreSectionId"); b.HasIndex("FamilyId", "StoreId", "FamilyProductId") .IsUnique() .HasFilter("\"FamilyProductId\" IS NOT NULL"); b.HasIndex("FamilyId", "StoreId", "ProductId") .IsUnique() .HasFilter("\"ProductId\" IS NOT NULL"); b.ToTable("ProductStoreSections"); }); modelBuilder.Entity("YesChef.Api.Entities.Recipe", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .HasColumnType("integer"); b.Property("Description") .HasColumnType("text"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("Instructions") .HasColumnType("text"); b.Property("Servings") .HasColumnType("integer"); b.Property("SourceUrl") .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(300) .HasColumnType("character varying(300)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CreatedByUserId"); b.HasIndex("FamilyId"); b.ToTable("Recipes"); }); modelBuilder.Entity("YesChef.Api.Entities.RecipeIngredient", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FamilyId") .HasColumnType("integer"); b.Property("FamilyProductId") .HasColumnType("integer"); b.Property("FamilyUnitOfMeasureId") .HasColumnType("integer"); b.Property("IsApproximate") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("ProductId") .HasColumnType("integer"); b.Property("Quantity") .HasPrecision(12, 4) .HasColumnType("numeric(12,4)"); b.Property("QuantityNote") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("RecipeId") .HasColumnType("integer"); b.Property("SortOrder") .HasColumnType("integer"); b.Property("UnitOfMeasureId") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("FamilyId"); b.HasIndex("FamilyProductId"); b.HasIndex("FamilyUnitOfMeasureId"); b.HasIndex("ProductId"); b.HasIndex("RecipeId"); b.HasIndex("UnitOfMeasureId"); b.ToTable("RecipeIngredients"); }); modelBuilder.Entity("YesChef.Api.Entities.ShoppingList", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .HasColumnType("integer"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("IsArchived") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("StoreId") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CreatedByUserId"); b.HasIndex("FamilyId"); b.HasIndex("StoreId"); b.ToTable("ShoppingLists"); }); modelBuilder.Entity("YesChef.Api.Entities.ShoppingListItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CheckedByUserId") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("FamilyProductId") .HasColumnType("integer"); b.Property("IsChecked") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(300) .HasColumnType("character varying(300)"); b.Property("ProductId") .HasColumnType("integer"); b.Property("RecipeId") .HasColumnType("integer"); b.Property("RemovedAt") .HasColumnType("timestamp with time zone"); b.Property("RemovedByUserId") .HasColumnType("integer"); b.Property("SectionId") .HasColumnType("integer"); b.Property("ShoppingListId") .HasColumnType("integer"); b.Property("SortOrder") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("CheckedByUserId"); b.HasIndex("FamilyId"); b.HasIndex("FamilyProductId"); b.HasIndex("ProductId"); b.HasIndex("RecipeId"); b.HasIndex("RemovedByUserId"); b.HasIndex("SectionId"); b.HasIndex("ShoppingListId"); b.ToTable("ShoppingListItems"); }); modelBuilder.Entity("YesChef.Api.Entities.Store", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FamilyId") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SortOrder") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("FamilyId", "Name") .IsUnique(); b.ToTable("Stores"); }); modelBuilder.Entity("YesChef.Api.Entities.StoreSection", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FamilyId") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SortOrder") .HasColumnType("integer"); b.Property("StoreId") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("FamilyId"); b.HasIndex("StoreId", "Name") .IsUnique(); b.ToTable("StoreSections"); }); modelBuilder.Entity("YesChef.Api.Entities.UnitOfMeasure", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Abbreviation") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("Category") .HasColumnType("integer"); b.Property("Code") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsBase") .HasColumnType("boolean"); b.Property("PluralName") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SingularName") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SortOrder") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("Abbreviation") .IsUnique(); b.HasIndex("Code") .IsUnique(); b.ToTable("UnitsOfMeasure"); }); modelBuilder.Entity("YesChef.Api.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Email") .IsRequired() .HasMaxLength(254) .HasColumnType("character varying(254)"); b.Property("EmailConfirmedAt") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Email") .IsUnique(); b.HasIndex("Name") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyMembership", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.User", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); b.Navigation("User"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyProduct", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyProductOverride", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); b.Navigation("Product"); }); modelBuilder.Entity("YesChef.Api.Entities.FamilyUnitOfMeasure", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); }); modelBuilder.Entity("YesChef.Api.Entities.Invite", b => { b.HasOne("YesChef.Api.Entities.User", "ConsumedByUser") .WithMany() .HasForeignKey("ConsumedByUserId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.User", "IssuedByUser") .WithMany() .HasForeignKey("IssuedByUserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("ConsumedByUser"); b.Navigation("Family"); b.Navigation("IssuedByUser"); }); modelBuilder.Entity("YesChef.Api.Entities.PasswordResetToken", b => { b.HasOne("YesChef.Api.Entities.User", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("YesChef.Api.Entities.ProductStoreSection", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.FamilyProduct", "FamilyProduct") .WithMany() .HasForeignKey("FamilyProductId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("YesChef.Api.Entities.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("YesChef.Api.Entities.Store", "Store") .WithMany() .HasForeignKey("StoreId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.StoreSection", "StoreSection") .WithMany() .HasForeignKey("StoreSectionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); b.Navigation("FamilyProduct"); b.Navigation("Product"); b.Navigation("Store"); b.Navigation("StoreSection"); }); modelBuilder.Entity("YesChef.Api.Entities.Recipe", b => { b.HasOne("YesChef.Api.Entities.User", "CreatedByUser") .WithMany() .HasForeignKey("CreatedByUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CreatedByUser"); b.Navigation("Family"); }); modelBuilder.Entity("YesChef.Api.Entities.RecipeIngredient", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.FamilyProduct", "FamilyProduct") .WithMany() .HasForeignKey("FamilyProductId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.FamilyUnitOfMeasure", "FamilyUnitOfMeasure") .WithMany() .HasForeignKey("FamilyUnitOfMeasureId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("YesChef.Api.Entities.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.Recipe", "Recipe") .WithMany("Ingredients") .HasForeignKey("RecipeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.UnitOfMeasure", "UnitOfMeasure") .WithMany() .HasForeignKey("UnitOfMeasureId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Family"); b.Navigation("FamilyProduct"); b.Navigation("FamilyUnitOfMeasure"); b.Navigation("Product"); b.Navigation("Recipe"); b.Navigation("UnitOfMeasure"); }); modelBuilder.Entity("YesChef.Api.Entities.ShoppingList", b => { b.HasOne("YesChef.Api.Entities.User", "CreatedByUser") .WithMany() .HasForeignKey("CreatedByUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.Store", "Store") .WithMany() .HasForeignKey("StoreId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CreatedByUser"); b.Navigation("Family"); b.Navigation("Store"); }); modelBuilder.Entity("YesChef.Api.Entities.ShoppingListItem", b => { b.HasOne("YesChef.Api.Entities.User", "CheckedByUser") .WithMany() .HasForeignKey("CheckedByUserId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.FamilyProduct", "FamilyProduct") .WithMany() .HasForeignKey("FamilyProductId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.Recipe", "Recipe") .WithMany() .HasForeignKey("RecipeId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.User", "RemovedByUser") .WithMany() .HasForeignKey("RemovedByUserId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.StoreSection", "Section") .WithMany() .HasForeignKey("SectionId") .OnDelete(DeleteBehavior.SetNull); b.HasOne("YesChef.Api.Entities.ShoppingList", "ShoppingList") .WithMany("Items") .HasForeignKey("ShoppingListId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("CheckedByUser"); b.Navigation("Family"); b.Navigation("FamilyProduct"); b.Navigation("Product"); b.Navigation("Recipe"); b.Navigation("RemovedByUser"); b.Navigation("Section"); b.Navigation("ShoppingList"); }); modelBuilder.Entity("YesChef.Api.Entities.Store", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); }); modelBuilder.Entity("YesChef.Api.Entities.StoreSection", b => { b.HasOne("YesChef.Api.Entities.Family", "Family") .WithMany() .HasForeignKey("FamilyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("YesChef.Api.Entities.Store", "Store") .WithMany() .HasForeignKey("StoreId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Family"); b.Navigation("Store"); }); modelBuilder.Entity("YesChef.Api.Entities.Recipe", b => { b.Navigation("Ingredients"); }); modelBuilder.Entity("YesChef.Api.Entities.ShoppingList", b => { b.Navigation("Items"); }); #pragma warning restore 612, 618 } } }