Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,451–2,475 of 9,842

ticket, page 99 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
245130024513455481368
245230024523303661369
245330024537806971371
245430024542261761374
245530024550336671374
245630024567806021374
245730024576352871376
245830024582010991377
245930024592536111377
246030024604947831378
246130024614677561378
246230024621219561378
246330024634187751380
246430024645746561380
246530024657081621381
246630024668276621381
246730024679148671381
246830024680291151381
246930024697347441382
247030024702681721382
247130024715441961384
247230024721213131384
247330024737899401385
247430024749685861387
247530024753998761387
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;