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,326–4,350 of 9,738

entry_scan, page 174 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4326439842017-09-01 10:21:501Metro
4327452412017-09-01 11:59:091Walk
4328437842017-09-01 15:52:241Metro
4329452142017-09-02 15:07:451Metro
4330452242017-09-02 15:08:031Metro
4331448352017-09-03 09:27:191Walk
4332448452017-09-03 09:27:301Walk
4333453412017-09-03 11:19:091Private Vehicle
4334453512017-09-03 11:19:121Private Vehicle
4335453612017-09-03 11:19:161Private Vehicle
4336451412017-09-04 11:33:231Metro
4337451212017-09-04 11:33:451Metro
4338451312017-09-04 11:33:471Metro
4339454422017-09-04 16:24:121Other
4340454222017-09-04 16:24:191Other
4341454322017-09-04 16:24:391Other
4342446712017-09-05 09:28:391Train
4343446812017-09-05 09:29:011Train
4344450222017-09-05 13:49:561Metro
4345454932017-09-06 11:38:581Walk
4346455132017-09-06 13:40:121Metro
4347455032017-09-06 13:40:231Metro
4348455232017-09-06 13:40:321Metro
4349454022017-09-06 14:35:391Bus
4350454122017-09-06 14:35:471Bus
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;