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 4,576–4,600 of 9,738

entry_scan, page 184 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4576477752017-10-17 16:24:161Metro
4577477952017-10-17 16:24:201Metro
4578478322017-10-18 14:49:401Metro
4579478222017-10-18 14:49:591Metro
4580478422017-10-18 14:50:031Metro
4581479612017-10-20 09:12:421Walk
4582479512017-10-20 09:12:491Walk
4583479512017-10-20 11:30:240NULL
4584479612017-10-20 11:55:540NULL
4585474522017-10-20 16:03:531Metro
4586479942017-10-21 09:15:451Private Vehicle
4587477412017-10-21 09:26:011Metro
4588480422017-10-21 14:37:321Private Vehicle
4589480622017-10-21 14:37:391Private Vehicle
4590480522017-10-21 14:37:471Private Vehicle
4591479412017-10-22 11:30:151Bus
4592480142017-10-23 11:31:391Walk
4593480242017-10-23 11:31:431Walk
4594480342017-10-23 11:31:541Walk
4595475112017-10-23 13:05:401Walk
4596480912017-10-23 14:10:271Train
4597476732017-10-25 10:01:031Train
4598476832017-10-25 10:01:101Train
4599481442017-10-26 10:16:471Metro
4600410412017-10-26 12:26:521Bus
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;