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,976–5,000 of 5,412

order_line, page 200 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4976111500
4977111500
4978121500
4979111500
498041400
498131800
4982121500
4983121500
498441400
4985121500
498641400
4987211700
4988111500
498941400
4990121500
499141400
499231800
4993111500
4994121500
499531800
499631800
499731800
499841400
4999221700
5000121500
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;