UI updates/backend/pipeline

This commit is contained in:
2026-03-15 22:51:26 +00:00
parent 48b015e095
commit 1d7aa31a11
13 changed files with 807 additions and 734 deletions

View File

@@ -9,6 +9,7 @@ using Microsoft.EntityFrameworkCore;
namespace Seasoned.Backend.Controllers;
[Authorize]
[ApiController]
[Route("api/recipe")]
public class RecipeController : ControllerBase

View File

@@ -5,7 +5,6 @@ using Seasoned.Backend.Models;
namespace Seasoned.Backend.Data;
// Inherit from IdentityDbContext to enable User management
public class ApplicationDbContext : IdentityDbContext<IdentityUser>
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
@@ -15,12 +14,10 @@ public class ApplicationDbContext : IdentityDbContext<IdentityUser>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
// Crucial: Call the base method so Identity tables are configured
base.OnModelCreating(modelBuilder);
modelBuilder.HasPostgresExtension("vector");
// Optional: Ensure the Recipe table links to the Identity User
modelBuilder.Entity<Recipe>()
.HasOne<IdentityUser>()
.WithMany()