Skip to content

Purchase

A Purchase records that a specific AppUser has acquired a specific Game. It is the entitlement record that unlocks library access.

Properties

PropertyTypeDescription
IdintPrimary key
BuyerIdintFK → AppUser
GameIdintFK → Game
PricePaidUsddecimalReference price at time of purchase
PurchasedAtUtcDateTimeWhen the purchase was recorded

Constraints

  • Unique index on (BuyerId, GameId) — a user can only own one copy of each game.

Usage

The Purchase record is created when an Order is fulfilled. It grants the buyer:

  • Access to the game in their Library (/library)
  • Ability to play HTML5 games in-browser
  • Ability to download the game zip
  • Eligibility to leave a review

Sell indie games for Bitcoin.