Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,551–7,575 of 9,842

ticket, page 303 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
755130075511873814078
755230075522752374078
755330075531481154078
755430075542164604078
755530075559512194078
755630075565655054078
755730075570398954078
755830075588889834078
755930075598184744078
756030075601668794078
756130075617695174078
756230075623765314078
756330075638478874078
756430075646532184078
756530075655513224078
756630075665330394078
756730075673086934078
756830075687934024078
756930075697022084078
757030075702549534078
757130075715237854078
757230075726719064078
757330075731761324078
757430075744650034079
757530075753803684079
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;