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,426–1,450 of 5,412

order_line, page 58 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1426221700
1427221700
142841400
1429121500
1430121500
1431121500
1432111500
1433221700
1434151500
1435121500
143631800
1437121500
1438111500
143931800
1440111500
1441211700
1442211700
1443211700
1444111500
1445231700
1446121500
1447221700
1448131500
144931800
1450241700
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;