Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,876–4,900 of 5,412

order_line, page 196 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
487641400
4877221700
4878111500
487931800
488031800
488141400
488231800
4883221700
488431800
4885151500
4886141500
4887231700
48881581500
4889111500
4890121500
489141400
489241400
4893111500
489441400
4895111500
4896111500
4897141500
4898121500
4899111500
4900131500
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;