using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace InkForge.Api.Data; public class ApiDbcontext( DbContextOptions options ) : IdentityDbContext(options) { public DbSet Workspaces { get; set; } = default!; protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity(options => { options.HasKey(m => m.Id); options.OwnsOne(m => m.Value); }); } }