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,976–3,000 of 9,738

entry_scan, page 120 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2976307622016-12-07 10:45:351Metro
2977307722016-12-07 10:45:541Metro
2978307132016-12-08 11:05:481Walk
2979306932016-12-08 11:06:151Walk
2980307232016-12-08 11:06:241Walk
2981307032016-12-08 11:06:271Walk
2982314512016-12-08 13:11:111Metro
2983314812016-12-08 13:11:121Metro
2984314612016-12-08 13:11:151Metro
2985314712016-12-08 13:11:411Metro
2986315132016-12-08 16:46:091Walk
2987314322016-12-09 10:01:411Metro
2988315642016-12-10 16:36:391Bus
2989316442016-12-11 13:47:191Metro
2990316542016-12-11 13:47:231Metro
2991316632016-12-11 14:18:091Bus
2992316712016-12-12 16:48:031Walk
2993316022016-12-13 14:34:591Bus
2994315822016-12-13 14:35:001Bus
2995315922016-12-13 14:35:011Bus
2996315722016-12-13 14:35:181Bus
2997316942016-12-13 16:31:441Bus
2998316842016-12-13 16:31:581Bus
2999317042016-12-13 16:32:071Bus
3000317142016-12-13 16:32:141Bus
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;