Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,701–3,725 of 9,842

ticket, page 149 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
370130037012828752026
370230037027371362027
370330037031364082028
370430037041447192028
370530037052981812028
370630037069331492028
370730037077341202028
370830037082683712032
370930037091037392032
371030037109824722032
371130037118582642033
371230037122675242034
371330037130581042034
371430037140937782035
371530037151773822035
371630037160238032035
371730037174887072035
371830037180342702036
371930037199547512036
372030037207844562037
372130037216649252038
372230037228887602038
372330037230544992040
372430037241078692040
372530037251766092043
Table definition
CREATE TABLE ticket (
  ticket_id INTEGER PRIMARY KEY,
  barcode   TEXT NOT NULL UNIQUE CHECK (length(barcode) = 13 AND barcode NOT GLOB '*[^0-9]*'),
  order_id  INTEGER NOT NULL REFERENCES purchase_order (order_id)
) STRICT;