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 4,251–4,275 of 9,738

entry_scan, page 171 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4251442132017-08-20 12:42:511Metro
4252437022017-08-20 15:00:560NULL
4253441122017-08-20 15:02:071Taxi
4254441222017-08-20 15:02:281Taxi
4255437112017-08-20 15:26:490NULL
4256436912017-08-20 16:16:460NULL
4257437322017-08-20 16:19:090NULL
4258437212017-08-20 16:20:370NULL
4259441312017-08-21 10:47:011Bus
4260441412017-08-21 10:47:031Bus
4261441722017-08-21 10:56:271Metro
4262441822017-08-21 10:56:321Metro
4263446522017-08-21 15:08:501Private Vehicle
4264446622017-08-21 15:09:081Private Vehicle
4265439012017-08-22 09:20:201Walk
4266446912017-08-22 11:43:021Metro
4267447512017-08-22 11:55:121Taxi
4268447112017-08-22 11:55:181Taxi
4269447412017-08-22 11:55:231Taxi
4270447312017-08-22 11:55:271Taxi
4271447212017-08-22 11:55:301Taxi
4272447742017-08-22 12:47:591Bus
4273447642017-08-22 12:48:081Bus
4274440822017-08-22 13:38:341Metro
4275447912017-08-22 16:00:591Walk
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;