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,951–2,975 of 9,738

entry_scan, page 119 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2951305912016-11-25 14:44:581Bus
2952294812016-11-26 10:56:121Bus
2953294912016-11-26 10:56:131Bus
2954294612016-11-26 10:56:141Bus
2955294712016-11-26 10:56:331Bus
2956306412016-11-27 09:31:071Taxi
2957306512016-11-27 09:31:071Taxi
2958306612016-11-27 09:31:151Taxi
2959306312016-11-27 09:31:301Taxi
2960306212016-11-27 11:42:071Metro
2961306112016-11-27 11:42:171Metro
2962305622016-11-27 15:36:021Private Vehicle
2963305522016-11-27 15:36:071Private Vehicle
2964305822016-11-27 15:36:091Private Vehicle
2965305722016-11-27 15:36:161Private Vehicle
2966306812016-11-29 10:21:281Bus
2967307412016-11-30 16:31:401Walk
2968307312016-11-30 16:31:441Walk
2969304842016-12-01 10:14:531Metro
2970306722016-12-02 13:32:381Private Vehicle
2971306712016-12-02 16:37:260NULL
2972313712016-12-03 11:53:571Walk
2973314452016-12-04 13:55:431Walk
2974315012016-12-07 10:20:001Private Vehicle
2975307522016-12-07 10:45:341Metro
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;