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,301–3,325 of 5,412

order_line, page 133 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3301121500
3302141500
330341400
3304141500
3305111500
3306131500
3307221700
3308211700
330941400
3310121500
3311111500
33121551500
331341400
331431800
331531800
3316111500
3317221700
3318131500
3319211700
332031800
3321111500
3322121500
3323111500
3324121500
3325211700
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;