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 7,901–7,925 of 9,738

entry_scan, page 317 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7901815232019-05-03 10:00:471Bus
7902815132019-05-03 10:00:581Bus
7903815522019-05-03 14:01:201Metro
7904811612019-05-03 15:06:481Walk
7905811512019-05-03 15:07:341Walk
7906815522019-05-03 15:43:140NULL
7907811312019-05-03 16:51:381Walk
7908811412019-05-03 16:51:571Walk
7909811212019-05-03 16:51:581Walk
7910811112019-05-03 16:52:201Walk
7911810622019-05-04 09:39:351Taxi
7912810522019-05-04 09:40:191Taxi
7913817112019-05-04 10:14:051Metro
7914817012019-05-04 10:14:091Metro
7915817212019-05-04 10:14:181Metro
7916816812019-05-04 10:14:271Metro
7917816912019-05-04 10:14:301Metro
7918816112019-05-04 10:26:251Walk
7919816212019-05-04 10:26:391Walk
7920815632019-05-04 10:28:461Metro
7921817512019-05-04 11:09:111Metro
7922817412019-05-04 11:09:171Metro
7923817312019-05-04 11:09:211Metro
7924817622019-05-04 13:53:021Metro
7925808912019-05-04 15:26:431Metro
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;