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,351–5,375 of 5,412

order_line, page 215 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5351231700
535231800
535331800
535441400
5355231700
535631800
535731800
5358141500
5359111500
5360111500
5361221700
5362121500
536341400
5364121500
536541400
536631800
5367111500
5368221700
5369121500
5370111500
5371111500
5372221700
5373121500
537441400
5375131500
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;