various endpoints

scuffed for the time being, will be fixed later
This commit is contained in:
mia
2026-04-01 10:31:57 -04:00
parent a2d6b04524
commit bef77babde
8 changed files with 495 additions and 0 deletions
+11
View File
@@ -14,6 +14,7 @@ public class AppDbContext : DbContext
public DbSet<PlayerSetting> PlayerSettings { get; set; }
public DbSet<AvatarItem> AvatarItems { get; set; }
public DbSet<PlayerAvatar> PlayerAvatars { get; set; }
public DbSet<SavedOutfit> SavedOutfits { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
@@ -80,6 +81,16 @@ public class AppDbContext : DbContext
entity.HasIndex(e => e.OwnerAccountId).IsUnique();
entity.ToTable("player_avatars");
});
// saved_outfits
modelBuilder.Entity<SavedOutfit>(entity =>
{
entity.HasKey(e => e.Id);
entity.Property(e => e.Id).ValueGeneratedOnAdd();
entity.Property(e => e.OwnerAccountId).IsRequired();
entity.HasIndex(e => e.OwnerAccountId).IsUnique();
entity.ToTable("saved_outfits");
});
}
}