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

entry_scan, page 244 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6076640222018-08-06 09:59:031Metro
6077640412018-08-06 11:32:131Other
6078640312018-08-06 11:32:181Other
6079635252018-08-06 11:59:191Walk
6080635052018-08-06 11:59:201Walk
6081635352018-08-06 11:59:271Walk
6082635152018-08-06 11:59:511Walk
6083640612018-08-06 12:54:071Other
6084640512018-08-06 12:54:091Other
6085631412018-08-07 09:30:551Walk
6086631512018-08-07 09:30:581Walk
6087631212018-08-07 09:31:211Walk
6088631112018-08-07 09:31:231Walk
6089631312018-08-07 09:31:341Walk
6090629412018-08-07 10:42:171Walk
6091629512018-08-07 10:42:201Walk
6092641112018-08-07 10:43:261Taxi
6093641212018-08-07 10:43:281Taxi
6094641012018-08-07 10:43:411Taxi
6095641352018-08-07 16:31:451Metro
6096641452018-08-07 16:31:591Metro
6097641512018-08-08 11:10:141Bus
6098642412018-08-09 10:24:161Bus
6099642312018-08-09 10:24:371Bus
6100642522018-08-09 11:31:431Walk
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;