Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,376–5,400 of 5,412

order_line, page 216 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
537631800
537731800
5378121500
537941400
538041400
538141400
5382151500
538331800
5384121500
5385211700
5386121500
5387141500
5388111500
5389111500
5390211700
5391121500
539231800
5393231700
5394151500
539531800
539641400
5397141500
5398121500
5399111500
5400121500
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;