Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 3,351–3,375 of 5,412

order_line, page 135 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3351121500
3352111500
3353111500
3354211700
335541400
335631800
3357121500
3358131500
3359231700
336031800
3361111500
3362111500
336341400
336441400
3365151500
336641400
3367121500
3368131500
3369141500
3370121500
3371111500
337241400
337331800
3374111500
337541400
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;