17 lines
445 B
C#
17 lines
445 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Seasoned.Backend.Models;
|
|
|
|
namespace Seasoned.Backend.Data;
|
|
|
|
public class ApplicationDbContext : DbContext
|
|
{
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
|
: base(options) { }
|
|
|
|
public DbSet<Recipe> Recipes { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.HasPostgresExtension("vector");
|
|
}
|
|
} |