using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using isnd.Data; using isnd.Data.ApiKeys; using isnd.Data.Catalog; namespace isnd.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().HasKey(v => new { v.PackageId, v.FullString, v.Type }); } public DbSet ApiKeys { get; set; } public DbSet Packages { get; set; } public DbSet PackageVersions { get; set; } public DbSet Commits { get; set; } } }