Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,751–1,775 of 5,412

order_line, page 71 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1751131500
1752131500
175331800
17541561500
175541400
1756211700
1757151500
1758111500
1759211700
176031800
1761141500
176241400
1763111500
1764211700
176531800
1766211700
176731800
1768141500
1769111500
1770141500
1771131500
177241400
1773221700
1774211700
177531800
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;