Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 201–225 of 9,842

ticket, page 9 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
201300020167870059
202300020229106161
203300020322845863
204300020482884763
205300020579910865
206300020629569465
207300020714295865
208300020858899467
209300020956157867
210300021029526769
211300021119962969
212300021274938974
213300021358376974
214300021416822076
215300021523257476
216300021623320577
217300021708210178
218300021887580778
219300021930861579
220300022075415879
221300022116722083
222300022255958084
223300022381194585
224300022441455885
225300022554091985
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;