26 lines
831 B
C#
26 lines
831 B
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using StudyLib.API.Models;
|
|
using StudyLib.Models;
|
|
using System;
|
|
|
|
namespace StudyLib.API.Data
|
|
{
|
|
public class StudyLibContext : IdentityDbContext<User>
|
|
{
|
|
public StudyLibContext(DbContextOptions<StudyLibContext> options) : base(options)
|
|
{
|
|
|
|
}
|
|
|
|
public DbSet<Subject> Subjects { get; set; }
|
|
public DbSet<Assignment> Assignments { get; set; }
|
|
public DbSet<Comment> Comments { get; set; }
|
|
public DbSet<Test> Tests { get; set; }
|
|
public DbSet<SubjectDeleteRequest> SubjectDeleteRequests { get; set; }
|
|
public DbSet<User> Users { get; set; }
|
|
public DbSet<Group> Groups { get; set; }
|
|
public DbSet<GroupCandidate> GroupCandidates { get; set; }
|
|
}
|
|
}
|