Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,326–8,350 of 9,842

ticket, page 334 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
832630083267415794493
832730083277256874494
832830083283754644494
832930083297544464495
833030083306441514496
833130083319792514496
833230083328719014497
833330083338991004502
833430083340127804502
833530083355241444502
833630083368580734503
833730083371076174504
833830083382283664505
833930083399086924505
834030083409261044508
834130083415988914508
834230083424657064512
834330083431236864512
834430083444506324512
834530083458162704512
834630083463987914512
834730083478697864513
834830083484526594513
834930083490169774513
835030083502464814513
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;