Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 51–75 of 9,842

ticket, page 3 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
5130000519056885
5230000527696035
5330000532507655
5430000544709125
5530000556680105
5630000568114775
5730000571810495
5830000587675305
5930000591418785
6030000608411405
6130000616739575
6230000620047895
6330000635478095
6430000643857415
6530000651611055
6630000662325106
6730000678765006
6830000680689397
6930000690986067
7030000705341577
7130000712859317
7230000728808169
73300007360056812
74300007431604012
75300007589200413
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;