Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,401–4,425 of 9,842

ticket, page 177 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
440130044016333042464
440230044026249492464
440330044030945832466
440430044042370872466
440530044057384662466
440630044060919982466
440730044071298102468
440830044087488942469
440930044096459852470
441030044105126712470
441130044113340962472
441230044124839152472
441330044132557912473
441430044148590342473
441530044155451382474
441630044165539382474
441730044171658192475
441830044182299792475
441930044199018162476
442030044202732342476
442130044217934712477
442230044228234932478
442330044237154622478
442430044240025992478
442530044256032122478
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;