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 2,026–2,050 of 9,738

entry_scan, page 82 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2026224522016-05-11 10:23:351Metro
2027224612016-05-11 11:38:291Other
2028224712016-05-11 11:38:471Other
2029208322016-05-12 14:35:351Other
2030224432016-05-12 14:42:321Private Vehicle
2031224132016-05-12 14:42:411Private Vehicle
2032224232016-05-12 14:42:481Private Vehicle
2033224332016-05-12 14:42:571Private Vehicle
2034224822016-05-12 15:37:181Metro
2035225032016-05-13 10:40:321Other
2036224932016-05-13 10:40:341Other
2037225242016-05-13 12:36:001Bus
2038225142016-05-13 12:36:341Bus
2039225622016-05-14 12:10:571Walk
2040225742016-05-14 12:51:241Bus
2041213012016-05-14 14:17:371Walk
2042212912016-05-14 14:18:001Walk
2043212812016-05-14 14:18:031Walk
2044225512016-05-16 11:25:091Other
2045226812016-05-16 11:33:081Metro
2046226712016-05-16 11:33:101Metro
2047225352016-05-16 12:01:471Other
2048209522016-05-17 13:21:291Walk
2049209422016-05-17 13:21:361Walk
2050209322016-05-17 13:22:141Walk
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;