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,426–6,450 of 9,738

entry_scan, page 258 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6426655612018-09-03 13:59:261Walk
6427656842018-09-04 10:55:461Walk
6428656942018-09-04 10:56:091Walk
6429657042018-09-04 10:56:161Walk
6430661312018-09-04 11:26:351Walk
6431661122018-09-04 15:29:141Metro
6432661222018-09-04 15:29:261Metro
6433661642018-09-05 10:52:571Bus
6434661742018-09-05 10:53:261Bus
6435661522018-09-05 11:20:061Metro
6436661422018-09-05 11:20:201Metro
6437661832018-09-05 11:38:431Metro
6438661922018-09-06 14:30:591Bus
6439662022018-09-06 14:30:591Bus
6440668532018-09-10 09:33:031Bus
6441668922018-09-11 11:33:531Private Vehicle
6442668822018-09-11 11:34:141Private Vehicle
6443658742018-09-11 12:32:271Walk
6444669312018-09-12 10:08:431Metro
6445669412018-09-12 11:23:591Walk
6446669512018-09-12 11:24:021Walk
6447669512018-09-12 14:12:120NULL
6448669422018-09-12 15:23:210NULL
6449657452018-09-14 10:09:261Walk
6450657552018-09-14 10:09:371Walk
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;