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,326–4,350 of 5,412

order_line, page 174 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
432641400
432741400
4328121500
4329221700
433041400
4331121500
433241400
4333221700
4334111500
433541400
4336121500
4337211700
4338121500
4339121500
434031800
4341121500
4342141500
4343121500
4344121500
4345231700
434631800
4347121500
434841400
4349141500
4350231700
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;