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,151–1,175 of 9,738

entry_scan, page 47 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1151109742015-10-13 13:18:531Bus
1152110042015-10-13 13:18:561Bus
1153109842015-10-13 13:19:001Bus
1154110542015-10-13 13:19:071Bus
1155110142015-10-13 13:19:111Bus
1156110742015-10-13 13:19:151Bus
1157109642015-10-13 13:19:261Bus
1158110642015-10-13 13:19:411Bus
1159109942015-10-13 13:19:551Bus
1160110942015-10-13 13:20:171Bus
1161110442015-10-13 13:20:211Bus
1162110242015-10-13 13:20:231Bus
1163110842015-10-13 13:20:271Bus
1164111242015-10-13 13:20:381Bus
1165111042015-10-13 13:20:431Bus
1166111842015-10-13 13:20:531Bus
1167112442015-10-13 13:20:561Bus
1168111942015-10-13 13:20:591Bus
1169110342015-10-13 13:21:111Bus
1170112142015-10-13 13:21:111Bus
1171111442015-10-13 13:21:151Bus
1172112242015-10-13 13:21:171Bus
1173111342015-10-13 13:21:291Bus
1174111742015-10-13 13:21:391Bus
1175111142015-10-13 13:21: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;