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,926–6,950 of 9,738

entry_scan, page 278 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6926695612018-12-04 13:58:071Bus
6927696612018-12-04 13:58:141Bus
6928697112018-12-04 13:58:251Bus
6929696112018-12-04 13:58:401Bus
6930695712018-12-04 13:58:421Bus
6931697212018-12-04 13:59:101Bus
6932696912018-12-04 13:59:231Bus
6933697512018-12-04 13:59:311Bus
6934697612018-12-04 13:59:381Bus
6935699612018-12-04 13:59:381Bus
6936699712018-12-04 13:59:421Bus
6937697412018-12-04 13:59:461Bus
6938697312018-12-04 13:59:591Bus
6939696512018-12-04 14:00:051Bus
6940698612018-12-04 14:00:081Bus
6941696812018-12-04 14:00:181Bus
6942699212018-12-04 14:00:441Bus
6943697012018-12-04 14:01:201Bus
6944700012018-12-04 14:01:261Bus
6945698712018-12-04 14:01:561Bus
6946697712018-12-04 14:02:151Bus
6947698812018-12-04 14:02:401Bus
6948698312018-12-04 14:02:501Bus
6949698912018-12-04 14:02:501Bus
6950698012018-12-04 14:02:541Bus
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;