Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,776–5,800 of 9,842

ticket, page 232 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
577630057767843333215
577730057777599393215
577830057784112823215
577930057794145213216
578030057803170173216
578130057819061083216
578230057825503423216
578330057836047313218
578430057847003633218
578530057859729893220
578630057860096463220
578730057877568433224
578830057883676433225
578930057896829223225
579030057904555673225
579130057919794113225
579230057921017953228
579330057932458033229
579430057944426193229
579530057957794923230
579630057963923713230
579730057974437763236
579830057987411763236
579930057999572383238
580030058004183463238
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;