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,226–6,250 of 9,738

entry_scan, page 250 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6226650952018-08-22 09:55:531Walk
6227651052018-08-22 09:56:021Walk
6228651152018-08-22 09:56:271Walk
6229651252018-08-22 09:56:361Walk
6230651412018-08-23 09:34:241Bus
6231651612018-08-23 09:34:391Bus
6232651512018-08-23 09:34:441Bus
6233655552018-08-23 12:26:591Walk
6234655452018-08-23 12:27:341Walk
6235649412018-08-24 09:24:231Walk
6236641612018-08-25 10:15:021Bus
6237641712018-08-25 10:15:221Bus
6238656012018-08-25 10:17:181Bus
6239651322018-08-25 10:35:051Metro
6240656352018-08-25 13:20:451Walk
6241656252018-08-25 13:20:461Walk
6242656142018-08-25 15:48:251Walk
6243650112018-08-26 14:08:531Other
6244650212018-08-26 14:08:571Other
6245643912018-08-26 14:19:061Walk
6246643712018-08-26 14:19:131Walk
6247644012018-08-26 14:19:141Walk
6248643812018-08-26 14:19:441Walk
6249589642018-08-27 10:05:361Bus
6250589742018-08-27 10:05:491Bus
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;