Skip to content
Louvre Ops DB

Table

entry_scan

Every entrance scan; only the first of the day records how the visitor travelled.

Replaces in 2020: Entrance, Ticket.Transportation

Rows 826–850 of 9,738

entry_scan, page 34 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
82687312015-08-15 12:20:121Other
82787412015-08-15 12:20:161Other
82887512015-08-15 12:20:441Other
82994142015-08-15 13:30:381Walk
83094342015-08-15 13:31:081Walk
83194242015-08-15 13:31:251Walk
83297332015-08-15 15:01:581Bus
83397232015-08-15 15:02:181Bus
83497452015-08-15 15:11:551Train
83592512015-08-15 15:59:271Bus
83696342015-08-16 11:18:271Bus
83796412015-08-16 11:53:551Walk
83897522015-08-16 15:44:151Walk
83997622015-08-17 10:02:131Train
84097722015-08-17 10:02:201Train
84197822015-08-17 10:02:531Train
84291912015-08-18 09:24:011Metro
84398422015-08-18 10:38:481Private Vehicle
84498322015-08-18 10:38:491Private Vehicle
84598542015-08-18 14:53:231Other
84698642015-08-18 14:54:131Other
84798642015-08-18 16:56:440NULL
84899112015-08-20 11:10:341Walk
84999242015-08-20 13:15:391Walk
85099342015-08-20 13:15:431Walk
Table definition
CREATE TABLE entry_scan (
  scan_id        INTEGER PRIMARY KEY,
  ticket_id      INTEGER NOT NULL REFERENCES ticket (ticket_id),
  entrance_id    INTEGER NOT NULL REFERENCES entrance (entrance_id),
  scanned_at     TEXT NOT NULL,
  is_first_entry INTEGER NOT NULL CHECK (is_first_entry IN (0, 1)),
  transport_mode TEXT CHECK (transport_mode IN ('Walk', 'Metro', 'Train', 'Bus', 'Taxi', 'Private Vehicle', 'Other')),
  CHECK ((is_first_entry = 1) = (transport_mode IS NOT NULL))
) STRICT;