Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,026–6,050 of 9,842

ticket, page 242 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
602630060264275843324
602730060275055403324
602830060282038193325
602930060291336653326
603030060303317273326
603130060315196523326
603230060327239303328
603330060331959803328
603430060341937733328
603530060351589493328
603630060360786063328
603730060372346043330
603830060386330063330
603930060390683573330
604030060408803123330
604130060417443363330
604230060427246173331
604330060434782813334
604430060445216683334
604530060458543923335
604630060462990573337
604730060474306753338
604830060488485713338
604930060490705003339
605030060508630603341
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;