Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,451–5,475 of 9,842

ticket, page 219 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
545130054514446563022
545230054527930183023
545330054530028633023
545430054546421553024
545530054550309293024
545630054566893273024
545730054573307583026
545830054581495583026
545930054598846353026
546030054602692063026
546130054618620483027
546230054624562923028
546330054632144293028
546430054641329633033
546530054650427043033
546630054666857833034
546730054670776983034
546830054689225683035
546930054693570113035
547030054709732483038
547130054717434903039
547230054725844153040
547330054733829853040
547430054740587463041
547530054752105783041
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;