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,226–5,250 of 5,412

order_line, page 210 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5226151500
522741400
5228131500
5229211700
523031800
5231121500
523241400
5233211700
5234221700
523531800
5236221700
523731800
5238211700
5239221700
524031800
524131800
524241400
5243221700
5244121500
5245121500
524641400
5247141500
5248121500
5249111500
525031800
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;