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 9,151–9,175 of 9,738

entry_scan, page 367 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9151922342019-11-09 11:39:401Bus
9152936122019-11-09 14:45:351Taxi
9153935922019-11-09 14:45:481Taxi
9154936022019-11-09 14:45:571Taxi
9155938332019-11-10 10:47:141Bus
9156934132019-11-10 10:53:311Bus
9157934032019-11-10 10:54:091Bus
9158938552019-11-11 09:25:571Bus
9159938752019-11-11 09:26:171Bus
9160938652019-11-11 09:26:201Bus
9161939242019-11-11 09:32:091Bus
9162939142019-11-11 09:32:161Bus
9163939042019-11-11 09:32:201Bus
9164938942019-11-11 09:32:311Bus
9165938842019-11-11 09:32:431Bus
9166938412019-11-11 09:42:561Train
9167938412019-11-11 12:33:550NULL
9168939632019-11-12 10:37:311Walk
9169939452019-11-13 10:05:211Private Vehicle
9170939352019-11-13 10:05:311Private Vehicle
9171940132019-11-13 11:50:251Metro
9172940232019-11-13 11:50:271Metro
9173930632019-11-13 14:53:181Walk
9174939512019-11-14 09:38:411Metro
9175936212019-11-14 10:39:221Walk
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;