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 1,501–1,525 of 9,738

entry_scan, page 61 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1501159342015-12-17 09:04:461Bus
1502159242015-12-17 09:04:531Bus
1503159612015-12-18 09:50:301Walk
1504159412015-12-18 09:50:451Walk
1505159712015-12-18 09:50:501Walk
1506159512015-12-18 09:50:551Walk
1507159812015-12-18 13:27:211Metro
1508154822015-12-18 16:16:271Walk
1509154622015-12-18 16:16:281Walk
1510154722015-12-18 16:16:361Walk
1511159922015-12-19 09:17:051Metro
1512160022015-12-19 09:17:111Metro
1513160152015-12-19 09:46:361Metro
1514160312015-12-19 14:48:271Train
1515160212015-12-19 14:48:361Train
1516160522015-12-19 15:32:591Metro
1517160422015-12-19 15:33:141Metro
1518159012015-12-21 12:27:281Walk
1519161312015-12-21 12:46:541Metro
1520161212015-12-21 12:47:031Metro
1521161112015-12-21 12:47:081Metro
1522161542015-12-21 15:00:361Walk
1523161642015-12-21 15:01:021Walk
1524161742015-12-21 15:01:041Walk
1525161442015-12-21 15:01:081Walk
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;