Retail & e-commerce
The standard commerce star schema — customers, products, orders, order lines, payments and returns — with order totals that reconcile against their lines.
customers— One row per person who has an account.products— The catalogue. Cost is included so margin is computable.orders— One row per order. Totals reconcile against order_items.order_items— Order lines. line_total = quantity × unit_price, less line discount.payments— What was actually taken. A captured payment equals the order total.returns— Returned lines. Never more than was bought, never before the order.