feat: enhance inventory schema to support longer ItemSlug and add GiftBox equipment payload handling

This commit is contained in:
Alexa
2026-06-06 22:50:42 +03:00
parent 92bd22d164
commit 73d77dffb6
9 changed files with 67 additions and 7 deletions
+1
View File
@@ -338,6 +338,7 @@ public class DorkNetDbContext(DbContextOptions<DorkNetDbContext> options) : DbCo
modelBuilder.Entity<PlayerInventoryEntity>(e =>
{
e.HasKey(p => p.Id);
e.Property(p => p.ItemSlug).HasMaxLength(128);
// One row per (player, item) pair.
e.HasIndex(p => new { p.PlayerId, p.ItemSlug }).IsUnique();
e.HasIndex(p => p.PlayerId);