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,126–1,150 of 9,738

entry_scan, page 46 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1126129012015-10-08 10:32:441Taxi
1127129922015-10-10 10:27:511Metro
1128130252015-10-11 09:52:551Walk
1129130352015-10-11 09:53:331Walk
1130130052015-10-11 09:53:421Walk
1131130152015-10-11 09:53:431Walk
1132130412015-10-11 12:02:481Metro
1133130512015-10-11 12:02:561Metro
1134130612015-10-11 12:02:561Metro
1135130912015-10-12 14:50:271Walk
1136131212015-10-12 14:50:341Walk
1137131012015-10-12 14:50:441Walk
1138131112015-10-12 14:51:101Walk
1139131312015-10-12 15:47:391Walk
1140131412015-10-12 15:47:461Walk
1141129812015-10-13 09:23:221Metro
1142129712015-10-13 09:23:541Metro
1143127842015-10-13 11:02:201Train
1144127642015-10-13 11:02:521Train
1145127742015-10-13 11:02:531Train
1146109142015-10-13 13:18:111Bus
1147109442015-10-13 13:18:231Bus
1148109242015-10-13 13:18:251Bus
1149109342015-10-13 13:18:411Bus
1150109542015-10-13 13:18:511Bus
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;