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 7,101–7,125 of 9,738

entry_scan, page 285 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7101666412018-12-24 10:26:111Bus
7102665412018-12-24 10:26:191Bus
7103664212018-12-24 10:26:201Bus
7104664812018-12-24 10:26:231Bus
7105664012018-12-24 10:26:261Bus
7106666912018-12-24 10:26:361Bus
7107668112018-12-24 10:26:401Bus
7108665112018-12-24 10:26:501Bus
7109665712018-12-24 10:27:121Bus
7110664612018-12-24 10:27:291Bus
7111667112018-12-24 10:27:321Bus
7112668412018-12-24 10:27:511Bus
7113665212018-12-24 10:27:531Bus
7114666812018-12-24 10:27:571Bus
7115665912018-12-24 10:28:021Bus
7116667012018-12-24 10:28:111Bus
7117667812018-12-24 10:28:141Bus
7118665312018-12-24 10:28:321Bus
7119664912018-12-24 10:28:561Bus
7120665012018-12-24 10:29:111Bus
7121667312018-12-24 10:29:201Bus
7122726732018-12-24 10:29:211Walk
7123726632018-12-24 10:29:221Walk
7124666312018-12-24 10:29:541Bus
7125665512018-12-24 10:29:561Bus
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;