Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 123 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
305130030515319361729
305230030526632971730
305330030535087811732
305430030545730851732
305530030552349711734
305630030569607821734
305730030576903241734
305830030585363791734
305930030592102301735
306030030608435621735
306130030619185251737
306230030621666781737
306330030637695221740
306430030643092581740
306530030658798791740
306630030668007191740
306730030676880451744
306830030683128321746
306930030694559601747
307030030706955051747
307130030719160571747
307230030723552021747
307330030739611711750
307430030748174441750
307530030751999711751
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;