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 2,876–2,900 of 9,738

entry_scan, page 116 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2876293922016-11-04 16:49:291Metro
2877293722016-11-04 16:49:391Metro
2878293822016-11-04 16:50:091Metro
2879299512016-11-05 10:57:561Walk
2880299612016-11-05 10:58:151Walk
2881294012016-11-06 11:06:341Metro
2882294552016-11-06 14:30:551Walk
2883294452016-11-06 14:31:121Walk
2884300112016-11-07 09:19:551Train
2885300212016-11-07 09:20:201Train
2886300012016-11-07 09:20:211Train
2887299232016-11-08 11:32:361Walk
2888299132016-11-08 11:32:431Walk
2889300642016-11-08 11:42:061Walk
2890300842016-11-08 11:42:091Walk
2891300742016-11-08 11:42:261Walk
2892300542016-11-08 11:42:331Walk
2893300412016-11-09 11:55:511Other
2894300312016-11-09 11:55:531Other
2895299712016-11-10 11:40:451Bus
2896293132016-11-11 13:13:341Metro
2897293032016-11-11 13:13:441Metro
2898292932016-11-11 13:13:591Metro
2899293232016-11-11 13:14:071Metro
2900301322016-11-11 14:38:091Walk
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;