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

entry_scan, page 109 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2701278312016-09-16 09:10:371Metro
2702278542016-09-16 11:52:211Metro
2703280952016-09-17 10:20:561Walk
2704281052016-09-17 10:21:011Walk
2705269112016-09-17 16:24:301Train
2706269012016-09-17 16:24:451Train
2707281832016-09-18 10:29:491Other
2708282132016-09-19 12:35:291Private Vehicle
2709282032016-09-19 12:35:321Private Vehicle
2710281932016-09-19 12:35:341Private Vehicle
2711282512016-09-19 16:13:531Metro
2712282312016-09-19 16:14:031Metro
2713282412016-09-19 16:14:211Metro
2714282222016-09-20 09:27:051Taxi
2715281512016-09-21 11:03:011Other
2716281412016-09-21 11:03:161Other
2717282912016-09-21 12:38:471Metro
2718282812016-09-21 12:39:071Metro
2719278712016-09-21 16:27:241Metro
2720278812016-09-21 16:27:581Metro
2721283312016-09-22 10:44:591Other
2722283512016-09-22 10:45:201Other
2723283412016-09-22 10:45:381Other
2724283742016-09-22 15:09:141Metro
2725283642016-09-22 15:09:171Metro
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;