mirror of
https://github.com/CannedNet/CannedNet.git
synced 2026-10-26 07:28:56 -07:00
various endpoints
scuffed for the time being, will be fixed later
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user