Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,801–9,825 of 9,842

ticket, page 393 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
980130098010444645382
980230098029985255384
980330098034275105384
980430098045525725385
980530098054106615386
980630098067928325386
980730098071955055387
980830098082208865387
980930098092863495387
981030098106170965387
981130098112592195388
981230098126582465389
981330098132491525390
981430098147895175391
981530098159718475391
981630098160573105393
981730098171656625393
981830098188808995393
981930098199578595394
982030098204904125394
982130098219171385394
982230098229248585394
982330098233172745394
982430098244367335397
982530098250847955397
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;