blob: 24d662ff231aa7df09947e37b8cf3949c9eb07c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 DbSet<RaffleWinner>? RaffleWinners { get; set; }
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) {}
protected override void OnModelCreating(ModelBuilder builder) {
base.OnModelCreating(builder);
}
}
}
|