Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,526–8,550 of 9,842

ticket, page 342 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
852630085263400164621
852730085273103614622
852830085281134834623
852930085294114224624
853030085302643844624
853130085313426364624
853230085326919464625
853330085338418474625
853430085349257694626
853530085356498004626
853630085362412804626
853730085376248224626
853830085383312024626
853930085396487544627
854030085404795304627
854130085410093424627
854230085423543904628
854330085438373424628
854430085448085154628
854530085456203824628
854630085468904984630
854730085476534554630
854830085483129614630
854930085494020784631
855030085503123624634
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;