Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,226–7,250 of 9,842

ticket, page 290 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
722630072263187133942
722730072276687893942
722830072289705383942
722930072299792463942
723030072300959083942
723130072317005923943
723230072325319883943
723330072338819873945
723430072342819693945
723530072356570123945
723630072364971423945
723730072377100993946
723830072385940453946
723930072391082153946
724030072403128283946
724130072410542503947
724230072427757603947
724330072430769013948
724430072441453783948
724530072453229733948
724630072469056623948
724730072474511963953
724830072484370913954
724930072499527493954
725030072504528963956
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;