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 301–325 of 9,738

entry_scan, page 13 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
30150722015-05-12 10:39:151Bus
30235012015-05-12 10:58:431Other
30335212015-05-12 10:58:461Other
30434912015-05-12 10:58:511Other
30535312015-05-12 10:59:061Other
30635112015-05-12 10:59:141Other
30732932015-05-13 09:19:081Metro
30833032015-05-13 09:19:091Metro
30932832015-05-13 09:19:191Metro
31050852015-05-13 12:24:181Walk
31150952015-05-13 12:24:271Walk
31251022015-05-13 12:59:231Bus
31351322015-05-13 14:43:211Walk
31451122015-05-13 14:43:321Walk
31551222015-05-13 14:43:591Walk
31651812015-05-14 11:41:291Walk
31752512015-05-15 09:49:491Taxi
31852412015-05-15 09:49:561Taxi
31952612015-05-16 09:11:261Metro
32052812015-05-16 09:11:361Metro
32152712015-05-16 09:11:371Metro
32253412015-05-16 09:39:371Other
32353212015-05-16 09:39:521Other
32453612015-05-16 09:39:541Other
32553312015-05-16 09:40:181Other
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;