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 8,201–8,225 of 9,738

entry_scan, page 329 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8201837722019-06-16 10:33:091Metro
8202837822019-06-16 10:33:351Metro
8203837312019-06-16 13:18:011Other
8204837012019-06-16 13:18:201Other
8205837212019-06-16 13:18:201Other
8206836912019-06-16 13:18:301Other
8207835122019-06-17 09:20:311Metro
8208835222019-06-17 09:20:591Metro
8209832522019-06-17 09:42:561Metro
8210831212019-06-17 13:38:341Taxi
8211836412019-06-18 10:48:201Metro
8212836212019-06-18 10:48:531Metro
8213836312019-06-18 10:48:541Metro
8214839712019-06-18 11:40:441Walk
8215834512019-06-18 12:21:161Taxi
8216834312019-06-18 12:21:291Taxi
8217834412019-06-18 12:21:421Taxi
8218834212019-06-18 12:21:551Taxi
8219834612019-06-18 12:21:561Taxi
8220836212019-06-18 12:23:000NULL
8221836312019-06-18 13:11:030NULL
8222836412019-06-18 13:25:470NULL
8223838632019-06-18 13:26:001Walk
8224838532019-06-18 13:26:181Walk
8225840542019-06-22 09:53:561Walk
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;