Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,876–5,900 of 9,842

ticket, page 236 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
587630058769737863283
587730058778911433283
587830058780452903284
587930058798832013284
588030058800856653284
588130058813342243284
588230058826777033285
588330058833726343285
588430058849964963285
588530058852943513286
588630058868678113288
588730058877211903288
588830058880944983288
588930058891750193288
589030058900420403288
589130058910186093289
589230058920260693289
589330058933994823293
589430058948447053295
589530058950086003295
589630058969199343296
589730058977909433296
589830058986258353296
589930058990102753296
590030059000604503296
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;