Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,401–1,425 of 9,842

ticket, page 57 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
14013001401882152768
14023001402995306768
14033001403251378768
14043001404872002768
14053001405784709768
14063001406251405768
14073001407225656768
14083001408346507768
14093001409808792768
14103001410546198768
14113001411570713768
14123001412811623768
14133001413915027768
14143001414085982768
14153001415686487768
14163001416625867769
14173001417981667770
14183001418700171772
14193001419120746772
14203001420100659773
14213001421666606774
14223001422847306774
14233001423906029774
14243001424223372776
14253001425203353776
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;