Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,876–7,900 of 9,842

ticket, page 316 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
787630078769099414221
787730078770447544221
787830078788708344222
787930078794940954222
788030078801332394222
788130078817777344222
788230078827132824225
788330078839493974225
788430078841461724227
788530078856247814227
788630078861890144230
788730078878322714230
788830078881338694232
788930078899207854232
789030078903177974234
789130078911437484235
789230078921500944235
789330078935312934235
789430078946787144236
789530078951367634239
789630078964483794239
789730078970845484239
789830078989253824239
789930078995517684239
790030079002543144242
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;