Java CI / build (push) Successful in 1m56s
Signed-off-by: Dmitrii <computer@yawaflua.tech> Took 4 hours 25 minutes
25 lines
729 B
C#
25 lines
729 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using MongoDB.EntityFrameworkCore.Extensions;
|
|
using SpMega.Backend.Persistent.Models.Transactions;
|
|
using SpMega.Backend.Persistent.Models.Users;
|
|
|
|
namespace SpMega.Backend.Persistent.Database;
|
|
|
|
public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
|
|
{
|
|
internal DbSet<Transaction> Transactions { get; set; }
|
|
internal DbSet<User> Users { get; set; }
|
|
internal DbSet<UserSession> UserSessions { get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
|
|
}
|
|
} |