Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,776–3,800 of 9,842

ticket, page 152 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
377630037760733602075
377730037771928222076
377830037786332662076
377930037798273082078
378030037800578082078
378130037818357292078
378230037821423032078
378330037838372832081
378430037846917392081
378530037853075802081
378630037863205322081
378730037876324952081
378830037885900362081
378930037891400032081
379030037902512702081
379130037910960742081
379230037922521722081
379330037933999262081
379430037948423392081
379530037953740952081
379630037963424972081
379730037978854072081
379830037982415922081
379930037992529802081
380030038002338982081
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;