- Moved the Kasino shop models to their own file

- Added investments as a derivative of assets
- Added profile state flags which can retain basic states like IsSponsored
- Added profile state data using EF Core's JSON functionality so it should automatically serialize / deserialize the accompanying model for convenience (OnModelCreating code commented out due to the models not yet having a DbSet as I won't bake them in until KasinoShop is ready)
This commit is contained in:
barelyprofessional
2026-04-26 20:39:49 -05:00
parent e725ca5864
commit 7981f57a34
5 changed files with 316 additions and 118 deletions

View File

@@ -12,8 +12,8 @@ public class ApplicationDbContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
//modelBuilder.Entity<KasinoShopProfileDbModel>()
// .OwnsOne(p => p.StateData, b => b.ToJson());
}
public DbSet<UserDbModel> Users { get; set; }