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

entry_scan, page 39 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
95148812015-09-02 12:09:491Bus
95247312015-09-02 12:09:511Bus
95346612015-09-02 12:09:551Bus
95448412015-09-02 12:09:551Bus
95546712015-09-02 12:10:341Bus
95647512015-09-02 12:10:391Bus
95749712015-09-02 12:11:101Bus
95849112015-09-02 12:11:271Bus
95947712015-09-02 12:11:431Bus
96048512015-09-02 12:11:491Bus
96147812015-09-02 12:12:181Bus
96247612015-09-02 12:12:341Bus
96348612015-09-02 12:12:551Bus
96449212015-09-02 12:13:111Bus
96547912015-09-02 12:13:191Bus
96648712015-09-02 12:14:051Bus
967106512015-09-02 12:37:451Metro
968106612015-09-02 12:38:051Metro
969105232015-09-02 16:32:031Walk
970105332015-09-02 16:32:101Walk
971105432015-09-02 16:32:291Walk
972100742015-09-03 10:53:111Walk
973100642015-09-03 10:53:191Walk
974100842015-09-03 10:53:221Walk
975100542015-09-03 10:53:341Walk
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;