Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,351–5,375 of 9,842

ticket, page 215 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
535130053511510102980
535230053520698622981
535330053532577132982
535430053546388202982
535530053559919062982
535630053561293952982
535730053570221752983
535830053580537182984
535930053596496812985
536030053601211402986
536130053612881062986
536230053627007132987
536330053630337782988
536430053649426362988
536530053650566002990
536630053660603202990
536730053673553792990
536830053684898212990
536930053691949142992
537030053704625882992
537130053717829702993
537230053720882052993
537330053737656662996
537430053741085642996
537530053754880502997
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;