study-lib-backend/API/Data/StudyLibContext.cs
Jakub Walkowiak a27049568b Added groups
2020-12-21 23:31:53 +01:00

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; }
}
}