Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,826–8,850 of 9,842

ticket, page 354 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
882630088260955134812
882730088274888014812
882830088289414544813
882930088291538874814
883030088308354724814
883130088318576284816
883230088324024134816
883330088335840194817
883430088347282814818
883530088354362414820
883630088369261754820
883730088377125964820
883830088382365364820
883930088393540764820
884030088409507744823
884130088411575044823
884230088426927144823
884330088434934064823
884430088445844434824
884530088451811794826
884630088460950644827
884730088476419184827
884830088481842044828
884930088494518194828
885030088501488174828
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;