Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,776–7,800 of 9,842

ticket, page 312 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
777630077769240514178
777730077774505004178
777830077789905354178
777930077799930374178
778030077807431754179
778130077814130764179
778230077825668874180
778330077836223264180
778430077845648974181
778530077855773134181
778630077860744144181
778730077875345244181
778830077880048004186
778930077898550964186
779030077909935854186
779130077913205494186
779230077926145694187
779330077936998604187
779430077943837084187
779530077955023184189
779630077965606614189
779730077975959184189
779830077986243314190
779930077991680724190
780030078002893874191
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;