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

entry_scan, page 275 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6851715322018-11-22 10:59:281Metro
6852708312018-11-23 11:09:351Walk
6853717112018-11-23 13:52:081Metro
6854717412018-11-23 14:52:081Bus
6855717512018-11-23 14:52:121Bus
6856717312018-11-23 14:52:411Bus
6857717212018-11-23 14:52:431Bus
6858718012018-11-24 10:17:531Train
6859718112018-11-24 10:17:581Train
6860719132018-11-26 10:39:541Walk
6861719032018-11-26 10:39:551Walk
6862719312018-11-26 12:12:341Metro
6863719512018-11-26 12:12:561Metro
6864719212018-11-26 12:13:051Metro
6865719412018-11-26 12:13:101Metro
6866716032018-11-27 14:05:381Metro
6867716132018-11-27 14:05:501Metro
6868715832018-11-27 14:05:531Metro
6869716232018-11-27 14:05:571Metro
6870715932018-11-27 14:06:101Metro
6871714722018-11-28 09:05:001Private Vehicle
6872714922018-11-28 09:05:101Private Vehicle
6873714822018-11-28 09:05:141Private Vehicle
6874714622018-11-28 09:05:251Private Vehicle
6875714522018-11-28 09:05:291Private Vehicle
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;