Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,901–8,925 of 9,842

ticket, page 357 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
890130089017898574862
890230089025864304862
890330089031231364862
890430089041101834862
890530089054070984862
890630089068396764862
890730089073102094862
890830089085852554862
890930089094649354862
891030089106215964862
891130089119990254862
891230089126614614862
891330089135337034862
891430089149940494862
891530089150424924862
891630089161853854862
891730089178921744862
891830089189342364862
891930089196326154862
892030089205106084862
892130089212183834862
892230089220535494862
892330089232100564862
892430089241293374862
892530089258483144862
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;