Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,651–5,675 of 9,842

ticket, page 227 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
565130056518764643143
565230056523111623146
565330056538152913147
565430056542708713147
565530056553722043148
565630056564419383148
565730056576067483149
565830056583166743149
565930056595378843150
566030056604497303150
566130056612875713152
566230056620437953152
566330056638894143156
566430056647563343157
566530056654416443157
566630056664328203157
566730056670070593157
566830056682623903157
566930056692406653158
567030056704368583159
567130056711145163160
567230056725326883160
567330056734944323164
567430056749280203165
567530056758813533165
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;