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 8,476–8,500 of 9,738

entry_scan, page 340 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8476856852019-07-27 10:14:171Walk
8477856752019-07-27 10:14:261Walk
8478856952019-07-27 10:14:351Walk
8479863312019-07-27 11:13:311Walk
8480863412019-07-27 11:13:531Walk
8481864642019-07-27 12:13:381Train
8482864542019-07-27 12:13:451Train
8483864742019-07-27 12:13:471Train
8484864822019-07-27 12:35:581Metro
8485864922019-07-27 12:36:221Metro
8486865122019-07-27 14:55:401Private Vehicle
8487865022019-07-27 14:55:411Private Vehicle
8488852412019-07-28 09:01:331Bus
8489852312019-07-28 09:01:421Bus
8490852512019-07-28 09:01:571Bus
8491852612019-07-28 09:02:121Bus
8492865452019-07-28 13:52:471Bus
8493864012019-07-29 13:47:441Walk
8494866442019-07-30 11:24:261Walk
8495866342019-07-30 11:24:271Walk
8496853412019-07-30 13:19:551Bus
8497853612019-07-30 13:20:001Bus
8498853812019-07-30 13:20:041Bus
8499853712019-07-30 13:20:121Bus
8500853512019-07-30 13:20:261Bus
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;