This commit is contained in:
2023-06-30 14:08:15 +01:00
commit bcaa32afb1
28 changed files with 1109 additions and 0 deletions

View File

@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore;
namespace NostrStreamer.Database;
public class StreamerContext : DbContext
{
public StreamerContext()
{
}
public StreamerContext(DbContextOptions<StreamerContext> ctx) : base(ctx)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfigurationsFromAssembly(typeof(StreamerContext).Assembly);
}
public DbSet<User> Users => Set<User>();
public DbSet<Payment> Payments => Set<Payment>();
}