Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,851–2,875 of 9,842

ticket, page 115 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
285130028512211851616
285230028529187471618
285330028538575281618
285430028548582071619
285530028551386151623
285630028566362791624
285730028575702801624
285830028588753261625
285930028594509571625
286030028601284391625
286130028615547461625
286230028624132611626
286330028636740241626
286430028649992211629
286530028658416661630
286630028669478071632
286730028673337221632
286830028680899261632
286930028694108761632
287030028706978451633
287130028717825041633
287230028726979491633
287330028736159321635
287430028748282821635
287530028751856611635
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;