Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,726–4,750 of 9,842

ticket, page 190 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
472630047267835142596
472730047275700722596
472830047280495512596
472930047295917592596
473030047307725232596
473130047311792562596
473230047320687662596
473330047331931662596
473430047343863022596
473530047358940142596
473630047364870372596
473730047376912302596
473830047383741912596
473930047393893502596
474030047401066512596
474130047416566272596
474230047428470142598
474330047430124272600
474430047447881932600
474530047459110832601
474630047468836742602
474730047475238022602
474830047486174552603
474930047496151982604
475030047501097702605
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;