container
Promotion Database

Promotion Database

PostgreSQL store of promotion and discount rules.

Databasepostgres@16Residency: eu-west-1Retention: indefiniteAccess Mode: readWrite

What is this?

The Promotion Database holds the promotion and discount rules that the Promotion ServicePromotion ServiceServicev1.0.0Evaluates promotion rules and calculates the discount that applies to a cart. Receives discount requests and publishes t...Publishesdiscount-calculatedSubscribescalculate-discountOwnershopping-platformMapRepoView docs evaluates when pricing a cart. It is the source of truth for what promotions exist, who they apply to, and when they are valid.

What does it store?

  • Promotions — one row per promotion: code, type (percentage / fixed amount), value, and validity window.
  • Eligibility rules — the conditions under which a promotion applies (minimum spend, customer segment, etc.).

Schema

Access patterns