Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,951–5,975 of 9,842

ticket, page 239 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
595130059515966463306
595230059526095173306
595330059537053923306
595430059546929163307
595530059551023883307
595630059565276723308
595730059578498483310
595830059584279883310
595930059595588013311
596030059600119763312
596130059616043623312
596230059625900523312
596330059637394053312
596430059644028973312
596530059654676353312
596630059664541433312
596730059679306693312
596830059685933833312
596930059690304853312
597030059702710523312
597130059710739683312
597230059729104373312
597330059735259083312
597430059745865783312
597530059751392803312
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;