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,176–4,200 of 5,412

order_line, page 168 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4176111500
417741400
4178151500
4179121500
4180221700
4181141500
418231800
418341400
418431800
418531800
4186141500
4187231700
418841400
4189131500
4190121500
4191211700
419241400
4193121500
419441400
419541400
4196111500
419741400
4198111500
4199221700
420031800
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;