blob: 8ab6b27dae2b9a040480c8780bc3c42f14c2cd44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace BackendPIA.Models {
public class ApplicationDbContext : IdentityDbContext<UserAccount> {
public DbSet<Raffle>? Raffles { get; set; }
public DbSet<Ticket>? Tickets { get; set; }
public DbSet<Prize>? Prizes { get; set; }
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) {}
protected override void OnModelCreating(ModelBuilder builder) {
base.OnModelCreating(builder);
}
}
}
|