.NET 8 backend with Zitadel JWT auth, TheMealDB integration, weekly meal plan generation, shopping list aggregation. Vue 3 + Tailwind 4 frontend with dark emerald theme, manual OIDC PKCE auth, all views implemented. Multi-stage Dockerfile with nginx reverse proxy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
223 lines
7.0 KiB
C#
223 lines
7.0 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using MealPlanner.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace backend.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.26")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.CheckedShoppingItem", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<bool>("IsChecked")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("ItemName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("MealPlanId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MealPlanId", "UserId", "ItemName");
|
|
|
|
b.ToTable("CheckedShoppingItems");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.MealPlan", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateOnly>("WeekStart")
|
|
.HasColumnType("date");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "WeekStart")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MealPlans");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.MealPlanEntry", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateOnly>("Date")
|
|
.HasColumnType("date");
|
|
|
|
b.Property<Guid>("MealPlanId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("RecipeId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MealPlanId");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("MealPlanEntries");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.Recipe", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ExternalId")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ImageUrl")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Instructions")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Source")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ExternalId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Recipes");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.RecipeIngredient", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<decimal?>("Amount")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<string>("Category")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RecipeId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Unit")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RecipeId");
|
|
|
|
b.ToTable("RecipeIngredients");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.UserSettings", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("HouseholdSize")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("UserId");
|
|
|
|
b.ToTable("UserSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.MealPlanEntry", b =>
|
|
{
|
|
b.HasOne("MealPlanner.Models.MealPlan", "MealPlan")
|
|
.WithMany("Entries")
|
|
.HasForeignKey("MealPlanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("MealPlanner.Models.Recipe", "Recipe")
|
|
.WithMany()
|
|
.HasForeignKey("RecipeId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("MealPlan");
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.RecipeIngredient", b =>
|
|
{
|
|
b.HasOne("MealPlanner.Models.Recipe", "Recipe")
|
|
.WithMany("Ingredients")
|
|
.HasForeignKey("RecipeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Recipe");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.MealPlan", b =>
|
|
{
|
|
b.Navigation("Entries");
|
|
});
|
|
|
|
modelBuilder.Entity("MealPlanner.Models.Recipe", b =>
|
|
{
|
|
b.Navigation("Ingredients");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|