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

entry_scan, page 325 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8101801712019-05-31 11:58:591Bus
8102802612019-05-31 11:59:001Bus
8103802112019-05-31 11:59:271Bus
8104801912019-05-31 11:59:471Bus
8105803412019-05-31 12:00:121Bus
8106802312019-05-31 12:00:431Bus
8107802212019-05-31 12:00:541Bus
8108802912019-05-31 12:01:031Bus
8109803012019-05-31 12:01:151Bus
8110803312019-05-31 12:01:151Bus
8111802812019-05-31 12:01:221Bus
8112803112019-05-31 12:02:011Bus
8113803212019-05-31 12:02:491Bus
8114826612019-05-31 12:07:251Walk
8115827912019-05-31 12:52:301Walk
8116827812019-05-31 12:52:311Walk
8117821242019-05-31 12:54:341Walk
8118821142019-05-31 12:54:591Walk
8119829922019-05-31 13:39:311Metro
8120819412019-06-01 10:42:221Metro
8121819512019-06-01 10:42:421Metro
8122819312019-06-01 10:42:441Metro
8123830522019-06-02 10:11:051Private Vehicle
8124830422019-06-02 10:11:091Private Vehicle
8125819812019-06-02 11:18:261Other
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;