Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 26–50 of 9,842

ticket, page 2 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
2630000265816695
2730000275167275
2830000289894975
2930000297240765
3030000309869265
3130000310023595
3230000322383525
3330000335522875
3430000348878495
3530000351942775
3630000360307435
3730000374010575
3830000385745565
3930000398469165
4030000407120785
4130000413495945
4230000426588365
4330000439133685
4430000445826815
4530000459670225
4630000463257775
4730000479369495
4830000488993505
4930000497596795
5030000502544125
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;