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,076–2,100 of 9,738

entry_scan, page 84 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2076228922016-05-25 10:27:331Private Vehicle
2077214222016-05-25 12:43:480NULL
2078214152016-05-25 13:14:480NULL
2079214012016-05-25 14:23:420NULL
2080229242016-05-26 11:31:491Walk
2081229422016-05-26 14:13:381Metro
2082229322016-05-26 14:13:581Metro
2083220142016-05-26 15:16:271Metro
2084220042016-05-26 15:16:351Metro
2085228312016-05-27 12:23:071Metro
2086228412016-05-27 12:23:111Metro
2087228712016-05-27 14:57:371Metro
2088229712016-05-28 10:28:541Walk
2089229612016-05-28 10:28:551Walk
2090225422016-05-28 10:58:381Walk
2091229822016-05-28 15:15:161Private Vehicle
2092229922016-05-28 15:15:341Private Vehicle
2093214642016-05-29 11:59:211Bus
2094214842016-05-29 11:59:251Bus
2095214942016-05-29 11:59:311Bus
2096215042016-05-29 11:59:511Bus
2097215642016-05-29 11:59:531Bus
2098215142016-05-29 11:59:571Bus
2099215342016-05-29 12:00:031Bus
2100215242016-05-29 12:00:211Bus
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;