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,576–6,600 of 9,738

entry_scan, page 264 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6576653842018-10-05 11:45:181Bus
6577654742018-10-05 11:45:201Bus
6578654442018-10-05 11:45:221Bus
6579654242018-10-05 11:45:271Bus
6580654042018-10-05 11:45:281Bus
6581653442018-10-05 11:45:481Bus
6582655042018-10-05 11:46:101Bus
6583654942018-10-05 11:47:261Bus
6584655342018-10-05 11:47:381Bus
6585685012018-10-06 09:24:051Walk
6586685112018-10-06 09:24:311Walk
6587685322018-10-06 10:44:391Metro
6588685222018-10-06 10:46:261Metro
6589676312018-10-06 15:18:161Walk
6590685912018-10-07 12:08:581Walk
6591686012018-10-07 12:09:021Walk
6592685812018-10-07 12:09:101Walk
6593686112018-10-07 14:33:201Walk
6594686212018-10-07 14:33:351Walk
6595682912018-10-07 16:08:201Metro
6596683012018-10-07 16:08:211Metro
6597677132018-10-08 09:42:191Metro
6598686352018-10-09 09:50:381Walk
6599686452018-10-09 09:51:061Walk
6600686532018-10-09 09:55:201Walk
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;