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 7,351–7,375 of 9,738

entry_scan, page 295 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7351743512019-02-19 09:45:091Bus
7352744312019-02-19 09:47:011Bus
7353746522019-02-19 10:12:281Walk
7354746422019-02-19 10:12:311Walk
7355765632019-02-19 10:30:221Metro
7356760112019-02-19 13:02:571Metro
7357764512019-02-20 09:05:411Metro
7358747432019-02-21 11:41:241Walk
7359771242019-02-22 11:19:461Walk
7360771812019-02-22 13:47:541Walk
7361772022019-02-23 09:47:001Bus
7362772122019-02-23 09:47:241Bus
7363772522019-02-24 11:32:461Taxi
7364772422019-02-24 11:32:551Taxi
7365772412019-02-24 14:22:260NULL
7366772512019-02-24 15:30:320NULL
7367771952019-02-25 15:22:361Walk
7368708542019-02-27 12:47:051Metro
7369708842019-02-27 12:47:171Metro
7370708642019-02-27 12:47:191Metro
7371708742019-02-27 12:47:231Metro
7372709042019-02-27 12:47:351Metro
7373709142019-02-27 12:47:351Metro
7374709442019-02-27 12:47:411Metro
7375708942019-02-27 12:47:531Metro
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;