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,026–4,050 of 5,412

order_line, page 162 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4026211700
4027221700
4028121500
4029141500
4030211700
4031211700
4032111500
403331800
4034221700
403531800
403631800
403731800
403841400
4039111500
4040121500
4041211700
4042221700
4043111500
40441551500
4045221700
4046121500
404741400
4048111500
404941400
4050121500
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;