Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,501–5,525 of 9,842

ticket, page 221 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
550130055011430883056
550230055022230313058
550330055031624473058
550430055049222983060
550530055059054923060
550630055066470353061
550730055071380193061
550830055084626903061
550930055090374713062
551030055108077303062
551130055117424623063
551230055120969863065
551330055131323263069
551430055144698933069
551530055155420683070
551630055164963673070
551730055179088883071
551830055182205913071
551930055195523943073
552030055206508063074
552130055215214373076
552230055225518393078
552330055236281613080
552430055243717053081
552530055259895463083
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;