Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,151–3,175 of 9,842

ticket, page 127 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
315130031510276491766
315230031528934551768
315330031539211991768
315430031548282021768
315530031555893471768
315630031561828621769
315730031578682701770
315830031580816101770
315930031590267351770
316030031605611311770
316130031618932531771
316230031624120851771
316330031634528201771
316430031644403321773
316530031652246801773
316630031669473391774
316730031674126291776
316830031686827751777
316930031694718941777
317030031702969701777
317130031710020271777
317230031722008631778
317330031733608491778
317430031749189001780
317530031756308241780
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;