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,326–1,350 of 5,412

order_line, page 54 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
132631800
1327231700
132831800
1329141500
133031800
1331111500
1332211700
133331800
133431800
133531800
1336221700
1337211700
1338211700
1339141500
1340251700
134131800
134231800
134341400
134441400
1345131500
1346211700
134741400
1348111500
134941400
1350141500
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;