container
Order Database

Order Database

PostgreSQL database that is the system of record for orders and their items.

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

What is this?

The Order Database is the authoritative store for orders at Acme Inc. The Order ServiceOrder ServiceServicev1.0.0The system of record for orders. Creates and cancels orders, serves order lookups, and publishes events as orders move t...Publishesorder-created, order-completed +1Subscribescreate-order, cancel-order +1APIsAsyncAPIOwnerordering-platformMapRepoView docs reads from and writes to it as orders are created, cancelled and completed.

What does it store?

  • Orders — one row per order: id, customer, status, total and timestamps.
  • Order Items — one row per item in an order: product, quantity and unit price.

Schema

Retention

Orders are financial records and are retained for 7 years (see frontmatter) to meet accounting and audit requirements.