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 2,776–2,800 of 9,738

entry_scan, page 112 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2776286312016-10-09 15:41:190NULL
2777286252016-10-09 15:44:240NULL
2778286412016-10-10 10:50:401Train
2779287942016-10-10 12:27:041Other
2780288142016-10-10 12:27:101Other
2781288042016-10-10 12:27:181Other
2782290512016-10-11 10:39:011Metro
2783290312016-10-11 10:39:211Metro
2784290412016-10-11 10:39:261Metro
2785290212016-10-11 10:39:321Metro
2786285732016-10-12 10:04:221Other
2787285632016-10-12 10:04:531Other
2788281712016-10-12 11:34:291Walk
2789281612016-10-12 11:34:581Walk
2790290612016-10-12 16:02:151Metro
2791290712016-10-12 16:02:231Metro
2792290812016-10-12 16:02:251Metro
2793284612016-10-13 10:55:201Bus
2794284712016-10-13 10:55:241Bus
2795289942016-10-13 13:59:291Walk
2796289842016-10-13 13:59:441Walk
2797290142016-10-13 13:59:551Walk
2798289742016-10-13 14:00:091Walk
2799288712016-10-15 11:20:021Metro
2800288812016-10-15 11:20:131Metro
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;