Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,826–7,850 of 9,842

ticket, page 314 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
782630078265375554219
782730078275536744219
782830078285052354219
782930078290778074219
783030078308516754219
783130078310414484219
783230078320255284219
783330078336495914219
783430078340034954219
783530078354886074219
783630078366492824219
783730078371363804219
783830078382275164219
783930078395431214219
784030078407183304219
784130078414739124219
784230078429269534219
784330078437524954219
784430078441894974219
784530078454113774219
784630078466431204219
784730078479120584219
784830078482589674219
784930078493542904219
785030078505472984219
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;