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

order_line, page 175 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4351121500
435231800
435331800
435431800
4355211700
4356121500
435741400
4358151500
435931800
436041400
436141400
4362221700
436331800
4364111500
4365221700
4366111500
4367121500
4368111500
4369131500
437041400
4371221700
4372111500
4373111500
4374221700
4375121500
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;