Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,076–6,100 of 9,842

ticket, page 244 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
607630060768153693358
607730060773358463358
607830060785811493359
607930060796557703359
608030060806780473359
608130060810213903361
608230060828908673362
608330060839261413365
608430060840153023365
608530060854586183365
608630060862118093365
608730060870320663365
608830060880661413367
608930060891516303367
609030060908449233368
609130060912655383368
609230060920825763368
609330060937447793369
609430060944599583369
609530060953673823369
609630060963570973369
609730060976017363370
609830060983268273370
609930060992932283371
610030061004941003374
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;