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,051–1,075 of 9,738

entry_scan, page 43 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
105195912015-09-16 16:02:091Walk
105296012015-09-16 16:02:111Walk
1053108112015-09-17 11:16:341Walk
1054108212015-09-17 11:17:011Walk
1055112912015-09-18 10:39:181Walk
1056112812015-09-18 10:39:421Walk
1057117522015-09-18 12:18:491Private Vehicle
1058117622015-09-18 12:18:571Private Vehicle
1059117852015-09-19 10:25:331Walk
1060113022015-09-19 11:01:071Train
1061113122015-09-19 11:01:101Train
1062118012015-09-19 11:06:091Other
1063117912015-09-19 11:06:201Other
1064118212015-09-20 10:41:151Metro
1065118112015-09-20 10:41:491Metro
1066118442015-09-20 11:15:411Taxi
1067118342015-09-20 11:15:431Taxi
1068118512015-09-20 12:16:261Walk
1069118622015-09-20 14:57:241Metro
1070118722015-09-20 14:57:401Metro
1071119022015-09-22 11:30:531Bus
1072119252015-09-22 12:28:161Walk
1073119152015-09-22 12:28:231Walk
1074119412015-09-23 10:10:231Train
1075119512015-09-23 10:10:241Train
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;