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

entry_scan, page 220 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5476509742018-05-04 12:23:361Bus
5477510842018-05-04 12:23:481Bus
5478509842018-05-04 12:23:491Bus
5479510042018-05-04 12:24:151Bus
5480511142018-05-04 12:24:561Bus
5481510142018-05-04 12:24:581Bus
5482510442018-05-04 12:25:071Bus
5483510342018-05-04 12:25:261Bus
5484511642018-05-04 12:26:101Bus
5485510642018-05-04 12:26:281Bus
5486511042018-05-04 12:26:361Bus
5487512242018-05-04 12:27:101Bus
5488511542018-05-04 12:27:181Bus
5489512042018-05-04 12:27:301Bus
5490511742018-05-04 12:27:461Bus
5491568722018-05-04 15:07:511Metro
5492568822018-05-04 15:07:531Metro
5493569112018-05-05 09:37:491Walk
5494569212018-05-05 09:38:251Walk
5495569412018-05-05 10:17:031Metro
5496569312018-05-05 10:17:041Metro
5497569022018-05-05 13:04:441Metro
5498569812018-05-06 09:42:541Metro
5499569712018-05-06 09:42:591Metro
5500570012018-05-06 09:43:131Metro
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;