Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 1,076–1,100 of 5,412

order_line, page 44 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1076111500
1077221700
107831800
107931800
108031800
108131800
108231800
1083211700
1084111500
108541400
1086111500
1087151500
1088221700
108941400
1090151500
1091111500
1092221700
1093221700
109441400
1095151500
109631800
1097211700
109841400
1099211700
1100141500
Table definition
CREATE TABLE order_line (
  order_id         INTEGER NOT NULL REFERENCES purchase_order (order_id),
  product_id       INTEGER NOT NULL REFERENCES product (product_id),
  quantity         INTEGER NOT NULL CHECK (quantity > 0),
  unit_price_cents INTEGER NOT NULL CHECK (unit_price_cents >= 0),
  PRIMARY KEY (order_id, product_id)
) STRICT;