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

entry_scan, page 79 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1951207742016-04-19 10:36:221Walk
1952207842016-04-19 10:36:271Walk
1953207642016-04-19 10:36:281Walk
1954205012016-04-19 15:01:101Walk
1955207432016-04-22 11:02:451Walk
1956207332016-04-22 11:03:121Walk
1957207532016-04-22 11:03:291Walk
1958207232016-04-22 11:03:301Walk
1959208042016-04-24 10:14:001Walk
1960208242016-04-24 10:14:171Walk
1961207942016-04-24 10:14:421Walk
1962204742016-04-25 11:19:351Walk
1963208812016-04-26 09:09:241Walk
1964208712016-04-26 09:09:471Walk
1965205432016-04-26 11:10:161Metro
1966205632016-04-26 11:10:371Metro
1967205532016-04-26 11:10:411Metro
1968205332016-04-26 11:10:491Metro
1969208952016-04-26 16:44:041Walk
1970208512016-04-27 09:27:591Bus
1971208412016-04-27 09:28:041Bus
1972206722016-04-28 13:02:371Bus
1973206622016-04-28 13:03:141Bus
1974210512016-04-30 11:45:361Private Vehicle
1975210612016-04-30 11:45:431Private Vehicle
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;