Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,976–8,000 of 9,842

ticket, page 320 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
797630079762413694265
797730079778606674265
797830079787085314270
797930079791820804271
798030079805200234272
798130079811822534272
798230079825583134272
798330079835181334274
798430079840187414274
798530079852897724274
798630079865208464275
798730079874083084275
798830079883746434277
798930079891882244278
799030079903419754280
799130079912875734280
799230079929196854285
799330079936576864285
799430079946132674286
799530079952543214287
799630079969458064287
799730079970611434289
799830079989279004289
799930079990930204289
800030080006755634289
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;