Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,376–7,400 of 9,842

ticket, page 296 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
737630073763378064029
737730073774584674030
737830073784973604031
737930073792935364032
738030073808333524034
738130073814501374034
738230073825695204039
738330073837405224040
738430073841383504040
738530073852267204041
738630073866259384042
738730073874177814042
738830073887931114043
738930073898121174044
739030073908510714044
739130073910929704044
739230073925789174044
739330073935824434044
739430073941107024044
739530073958828724044
739630073965788594044
739730073975611404044
739830073987007704044
739930073992000424044
740030074003362894044
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;