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 251–275 of 9,738

entry_scan, page 11 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
25142112015-05-01 11:30:331Other
25235622015-05-01 11:46:001Walk
25335722015-05-01 11:46:151Walk
25430812015-05-01 13:28:331Metro
25530912015-05-01 13:29:151Metro
25642232015-05-01 15:42:181Metro
25733612015-05-02 11:22:061Taxi
25833812015-05-02 11:22:061Taxi
25933712015-05-02 11:22:081Taxi
26042452015-05-02 14:25:231Other
26142352015-05-02 14:25:421Other
26242712015-05-03 10:00:241Walk
26342612015-05-03 10:00:501Walk
26442512015-05-03 10:06:411Metro
26533342015-05-03 10:07:541Walk
26633242015-05-03 10:07:591Walk
26733442015-05-03 10:08:021Walk
26833542015-05-03 10:08:211Walk
26943122015-05-03 14:01:261Private Vehicle
27042822015-05-03 14:01:271Private Vehicle
27142922015-05-03 14:01:281Private Vehicle
27243022015-05-03 14:01:331Private Vehicle
27343022015-05-03 16:24:510NULL
27442852015-05-03 17:03:450NULL
27542922015-05-03 17:21:590NULL
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;