Add SOR.Bazaar service — store, P2P marketplace, auction house, cosmetics

New project: SOR.Bazaar (12 message handlers)
  Store:       get_store, buy_booster_pack, buy_prebuilt_deck, buy_cosmetic, get_my_balance
  Marketplace: get_listings, get_my_listings, list_card, cancel_listing,
               buy_listing (shared-tx atomicity), place_bid (shared-tx + refund),
               get_transactions

New DB entities:
  BazaarDb:    Cosmetic, PurchaseRecord, BoosterPackCardGrant, AuctionBid
  CollectionDb: PlayerCosmetic
  IdentityDb:  Account.OriginPoints

BoosterPack gets CardSetId for set-scoped card pool draws.
BazaarEnums: PurchaseProductType, CosmeticType.

3 EF migrations applied to pg-forge-01:
  AddOriginPoints, AddBazaarCosmetics, AddPlayerCosmetics

Admin pages: CosmeticsPage, CosmeticEditor, PurchaseRecordsPage (with
  expandable booster pack card grant rows), NavMenu Bazaar submenu updates.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-02-25 19:02:59 -05:00
co-authored by Claude Happy
parent 2cac55cbd9
commit 348c37b9b5
42 changed files with 4127 additions and 10 deletions
@@ -116,6 +116,31 @@ namespace SOR.Database.Migrations.Collection
b.ToTable("player_cards", "collection");
});
modelBuilder.Entity("SOR.Database.Entities.Collection.PlayerCosmetic", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<Guid>("AccountId")
.HasColumnType("uuid");
b.Property<DateTimeOffset>("AcquiredAt")
.HasColumnType("timestamp with time zone");
b.Property<Guid>("CosmeticId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("AccountId");
b.HasIndex("AccountId", "CosmeticId")
.IsUnique();
b.ToTable("player_cosmetics", "collection");
});
modelBuilder.Entity("SOR.Database.Entities.Collection.DeckCard", b =>
{
b.HasOne("SOR.Database.Entities.Collection.Deck", "Deck")