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,876–6,900 of 9,738

entry_scan, page 276 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6876720312018-11-28 10:48:361Metro
6877716812018-11-28 14:00:481Other
6878716712018-11-28 14:00:561Other
6879719912018-11-29 10:08:361Walk
6880720112018-11-29 10:09:061Walk
6881720012018-11-29 10:09:111Walk
6882716912018-11-29 11:56:211Walk
6883720912018-11-30 09:18:281Bus
6884720812018-11-30 09:19:081Bus
6885721252018-11-30 12:41:561Walk
6886721352018-11-30 12:42:041Walk
6887717822018-11-30 13:10:281Walk
6888717922018-11-30 13:10:281Walk
6889701512018-12-01 10:15:291Other
6890701612018-12-01 10:15:361Other
6891701412018-12-01 10:15:521Other
6892719752018-12-01 11:03:101Private Vehicle
6893719652018-12-01 11:03:161Private Vehicle
6894719712018-12-01 13:44:410NULL
6895719652018-12-01 14:31:130NULL
6896718812018-12-02 09:15:481Metro
6897718612018-12-02 09:16:021Metro
6898718512018-12-02 09:16:081Metro
6899718912018-12-02 09:16:101Metro
6900718712018-12-02 09:16:211Metro
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;