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 851–875 of 9,738

entry_scan, page 35 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
85199542015-08-20 13:16:181Walk
85299442015-08-20 13:16:201Walk
85395142015-08-21 10:35:291Metro
85495242015-08-21 10:35:381Metro
855100022015-08-21 15:09:251Other
856100152015-08-21 16:04:461Bus
857100252015-08-21 16:04:471Bus
858100352015-08-21 16:05:041Bus
859100452015-08-21 16:05:201Bus
86098732015-08-22 10:27:591Other
861101512015-08-23 09:41:231Train
86288012015-08-23 11:17:011Metro
86388212015-08-23 11:17:011Metro
86488112015-08-23 11:17:041Metro
86588312015-08-23 11:17:151Metro
86690912015-08-23 15:19:011Walk
86790812015-08-23 15:19:031Walk
86891012015-08-23 15:19:121Walk
86990712015-08-23 15:19:391Walk
87094532015-08-23 15:49:151Walk
87194632015-08-23 15:49:331Walk
87290412015-08-23 16:49:051Walk
87390312015-08-23 16:49:321Walk
874102212015-08-24 10:35:501Metro
875102712015-08-25 10:30:251Walk
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;