Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 302 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
752630075261128254075
752730075270994564076
752830075285792444076
752930075298785714076
753030075301369484076
753130075317346914078
753230075326111994078
753330075339651864078
753430075344336064078
753530075353006964078
753630075360626814078
753730075375484414078
753830075382622844078
753930075394471474078
754030075401457594078
754130075410151294078
754230075427355634078
754330075433795124078
754430075443520044078
754530075457520704078
754630075463009014078
754730075476292084078
754830075489889414078
754930075499545404078
755030075508556184078
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;