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 776–800 of 9,738

entry_scan, page 32 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
77685112015-08-04 10:29:021Metro
77791232015-08-05 09:09:171Metro
77891132015-08-05 09:09:181Metro
77991322015-08-05 10:30:331Walk
78091422015-08-05 10:31:001Walk
78191822015-08-06 09:36:591Taxi
78292022015-08-06 10:27:581Private Vehicle
78392222015-08-06 10:28:201Private Vehicle
78492322015-08-06 10:28:201Private Vehicle
78592422015-08-06 10:28:341Private Vehicle
78692122015-08-06 10:28:371Private Vehicle
78780032015-08-06 16:44:091Bus
78880232015-08-06 16:44:181Bus
78980132015-08-06 16:44:241Bus
79080332015-08-06 16:44:301Bus
79192642015-08-07 10:56:451Walk
79291632015-08-07 12:25:591Walk
79391732015-08-07 12:26:031Walk
79491532015-08-07 12:26:041Walk
79593312015-08-09 14:24:341Walk
79693212015-08-09 14:24:381Walk
79793812015-08-10 09:36:181Metro
79893912015-08-10 09:36:411Metro
79994012015-08-10 12:50:021Walk
80088912015-08-10 15:34:311Walk
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;