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

entry_scan, page 38 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
926105822015-08-31 11:25:441Bus
927101312015-09-01 10:47:531Metro
928101412015-09-01 10:48:261Metro
929101112015-09-01 10:48:291Metro
930101212015-09-01 10:48:371Metro
931106422015-09-01 12:03:311Walk
932104422015-09-01 14:18:461Metro
93345212015-09-02 12:07:191Bus
93445312015-09-02 12:07:331Bus
93545512015-09-02 12:07:371Bus
93645612015-09-02 12:07:391Bus
93745412015-09-02 12:07:451Bus
93845912015-09-02 12:07:551Bus
93946412015-09-02 12:08:091Bus
94047012015-09-02 12:08:231Bus
94145812015-09-02 12:08:241Bus
94247112015-09-02 12:08:271Bus
94346112015-09-02 12:08:311Bus
94446512015-09-02 12:08:471Bus
94546312015-09-02 12:08:491Bus
94646012015-09-02 12:08:571Bus
94748312015-09-02 12:08:591Bus
94846912015-09-02 12:09:341Bus
94946812015-09-02 12:09:391Bus
95047212015-09-02 12:09:431Bus
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;