Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,826–5,850 of 9,842

ticket, page 234 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
582630058264063943266
582730058270398173266
582830058286738923266
582930058292046343267
583030058300759763267
583130058312374683268
583230058324336473270
583330058338937693270
583430058348869603271
583530058352887483271
583630058364482573271
583730058375157533271
583830058386049453271
583930058397323353271
584030058401075903271
584130058418569033271
584230058420217403271
584330058435902903271
584430058440288803271
584530058455628473271
584630058463225803271
584730058478843003271
584830058489379293271
584930058496058543271
585030058505270713271
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;