Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,576–7,600 of 9,842

ticket, page 304 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
757630075761450944080
757730075770581384080
757830075782412834081
757930075794688154082
758030075807969094082
758130075818224274084
758230075828268394084
758330075830307314084
758430075849800474084
758530075859218844084
758630075865925894087
758730075872980874088
758830075888072444089
758930075898905554090
759030075907950784090
759130075915650584090
759230075920258724091
759330075934968874091
759430075945049664093
759530075951691824093
759630075965539834094
759730075976298264094
759830075984997304095
759930075993551894095
760030076000533934097
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;