Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,051–7,075 of 9,842

ticket, page 283 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
705130070515888363861
705230070520020493862
705330070531975463863
705430070541209673863
705530070552765493863
705630070568491353863
705730070575975583863
705830070588970253865
705930070591372633865
706030070603559173865
706130070610935723865
706230070628263273866
706330070638735203867
706430070641042233868
706530070659793383868
706630070662118283869
706730070672321533870
706830070686857733871
706930070699397103871
707030070702754493871
707130070714898083873
707230070720065343874
707330070733769413877
707430070746452673877
707530070754866823877
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;