Skip to content

Order Item

An OrderItem represents a single Game within an Order. Since a Store Page can bundle multiple games, each game in the bundle becomes a separate order item.

Properties

PropertyTypeDescription
IdintPrimary key
OrderIdintFK → parent Order
GameIdintFK → the Game being purchased
TitleSnapshotstringGame title at time of purchase (immutable)
AmountSatslongPrice portion allocated to this item

Relationships

OrderItem (N) ──── (1) Order
OrderItem (N) ──── (1) Game

Notes

  • The TitleSnapshot preserves the game title as it was when the order was placed, even if the maker later renames the game.
  • When a store page bundles multiple games, each game's share of the total price is recorded in AmountSats.

Sell indie games for Bitcoin.