Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 110 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
272630027265145611532
272730027271586441532
272830027280591831532
272930027291179851532
273030027308226301532
273130027310095771533
273230027321422281533
273330027332139991533
273430027349269811534
273530027354882281534
273630027369737591535
273730027371888831535
273830027383388291535
273930027399919231535
274030027401897121536
274130027416736541536
274230027422935721538
274330027432687411538
274430027448017401538
274530027450494771539
274630027460619791539
274730027474346131543
274830027483193781544
274930027490787221544
275030027505068391545
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;