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:
@@ -31,4 +31,11 @@ public sealed class Account : IdentityUser<Guid>
|
||||
/// Null means they have not yet chosen their starter deck.
|
||||
/// </summary>
|
||||
public DateTimeOffset? StarterDeckSelectedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// In-game earned currency balance (Origin Points / Gold).
|
||||
/// Earned through gameplay; can also be purchased from the bazaar store.
|
||||
/// Spent on booster packs, prebuilt decks, cosmetics, and P2P listings.
|
||||
/// </summary>
|
||||
public int OriginPoints { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user