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,701–8,725 of 9,738

entry_scan, page 349 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8701881242019-08-31 13:02:011Bus
8702881342019-08-31 13:02:201Bus
8703881442019-08-31 13:02:231Bus
8704881042019-08-31 13:02:421Bus
8705881142019-08-31 13:02:481Bus
8706882812019-08-31 13:08:390NULL
8707879612019-09-01 10:41:391Walk
8708879512019-09-01 10:41:591Walk
8709887112019-09-01 11:57:441Metro
8710887212019-09-01 11:58:001Metro
8711886812019-09-02 11:40:461Walk
8712886812019-09-02 13:20:240NULL
8713879012019-09-03 09:30:081Train
8714879112019-09-03 09:30:111Train
8715879112019-09-03 11:52:550NULL
8716879012019-09-03 12:46:420NULL
8717887822019-09-04 12:34:011Walk
8718887722019-09-04 12:34:371Walk
8719881922019-09-04 13:03:021Walk
8720881722019-09-04 13:03:091Walk
8721881822019-09-04 13:03:241Walk
8722880812019-09-04 13:16:091Walk
8723880912019-09-04 13:16:341Walk
8724888022019-09-04 15:47:441Metro
8725888122019-09-04 15:47:561Metro
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;