Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,926–7,950 of 9,842

ticket, page 318 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
792630079269466494259
792730079279141804259
792830079283151794259
792930079297535364259
793030079308887204262
793130079315743184262
793230079325418224263
793330079335580964263
793430079341526854263
793530079355983764263
793630079369208614263
793730079375551924263
793830079380970544263
793930079396439724263
794030079405166244263
794130079416998714263
794230079428303884263
794330079436096934263
794430079445202024263
794530079457238724263
794630079460570344263
794730079472574744263
794830079480527744263
794930079494124944263
795030079501327834263
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;