mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-29 21:33:38 +01:00
yeah idk, basic form of reg, auth, upload, whitelist. lots of stuff.
This commit is contained in:
parent
0a4ee136bc
commit
f6fbb4c862
20 changed files with 673 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
using MareSynchronosServer.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace MareSynchronosServer.Data
|
||||
{
|
||||
public class MareDbContext : Microsoft.EntityFrameworkCore.DbContext
|
||||
{
|
||||
public MareDbContext(DbContextOptions<MareDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<FileCache> Files { get; set; }
|
||||
public DbSet<Whitelist> Whitelists { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<User>().ToTable("Users");
|
||||
modelBuilder.Entity<FileCache>().ToTable("FileCaches");
|
||||
modelBuilder.Entity<Whitelist>().ToTable("Whitelists");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue