Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 358 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
892630089267598264862
892730089277527494862
892830089282965164862
892930089290425244862
893030089305103454862
893130089315715604862
893230089328201724862
893330089332862584862
893430089346539604862
893530089355447704862
893630089360256794862
893730089372006974862
893830089388698684862
893930089393858234862
894030089409755624862
894130089419327524862
894230089421667764862
894330089438898574862
894430089445603364862
894530089454444024862
894630089469598994862
894730089473749774862
894830089480060164863
894930089492308034864
895030089500117114865
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;