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 5,151–5,175 of 9,738

entry_scan, page 207 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5151531212018-03-06 12:50:231Other
5152531112018-03-06 12:50:431Other
5153531012018-03-06 12:50:521Other
5154534832018-03-07 11:10:471Walk
5155534732018-03-07 11:11:071Walk
5156534942018-03-08 11:31:381Bus
5157535412018-03-09 12:32:321Walk
5158535512018-03-09 12:32:341Walk
5159535612018-03-09 12:33:021Walk
5160535312018-03-09 12:33:061Walk
5161535812018-03-10 10:45:431Walk
5162534522018-03-10 11:22:131Walk
5163534422018-03-10 11:22:181Walk
5164534622018-03-10 11:22:241Walk
5165536112018-03-11 09:30:221Walk
5166536012018-03-11 09:30:561Walk
5167535912018-03-11 10:36:351Walk
5168536212018-03-11 13:20:541Train
5169536722018-03-13 11:44:271Private Vehicle
5170536522018-03-13 11:44:491Private Vehicle
5171536622018-03-13 11:44:591Private Vehicle
5172536822018-03-13 11:45:111Private Vehicle
5173536412018-03-14 13:51:261Walk
5174536312018-03-14 13:51:471Walk
5175537342018-03-15 11:49:341Metro
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;