Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,476–3,500 of 9,842

ticket, page 140 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
347630034768670841879
347730034771641601879
347830034781762831880
347930034793762221880
348030034800755171881
348130034817120491881
348230034820141001882
348330034834216931887
348430034843602971888
348530034856768031891
348630034867193191893
348730034871244651893
348830034888508761895
348930034891615971895
349030034908778451895
349130034916478571895
349230034927156541899
349330034938264851901
349430034942954151903
349530034956734851905
349630034961533121905
349730034974858961906
349830034982685851906
349930034998742271909
350030035006136351910
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;