Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,851–8,875 of 9,842

ticket, page 355 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
885130088516342214828
885230088528344144830
885330088534615034830
885430088547705774831
885530088550235034831
885630088564255664832
885730088573628184832
885830088583702104832
885930088594784014835
886030088601111214835
886130088610710384835
886230088625307684835
886330088632515414835
886430088645511944836
886530088655384114836
886630088664370114837
886730088674937974837
886830088684298604840
886930088694381054841
887030088709068494842
887130088710331254843
887230088725461124843
887330088734468704844
887430088749399414844
887530088756116284845
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;