Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,476–6,500 of 9,842

ticket, page 260 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
647630064765760713581
647730064772631583581
647830064785503013581
647930064797070443583
648030064804598013583
648130064814236633583
648230064820480703583
648330064832179593584
648430064846015453585
648530064851112333586
648630064862416453586
648730064870002133586
648830064886122843586
648930064894889223588
649030064901646733588
649130064915693683588
649230064926304763589
649330064939102163589
649430064943225773590
649530064959628023591
649630064962346463592
649730064975436713592
649830064989457493592
649930064997294973593
650030065006122263593
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;