Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,326–5,350 of 5,412

order_line, page 214 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5326111500
5327131500
5328211700
532931800
533031800
533141400
5332141500
5333111500
533441400
533541400
533631800
5337111500
5338221700
5339121500
534031800
5341221700
5342111500
5343121500
534441400
534541400
534641400
5347121500
534831800
534931800
535031800
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;