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 451–475 of 9,738

entry_scan, page 19 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
45163242015-06-11 09:09:461Other
45265712015-06-11 09:23:231Metro
45365812015-06-11 09:23:281Metro
45465912015-06-11 13:10:201Bus
45566112015-06-11 13:10:351Bus
45666012015-06-11 13:10:431Bus
45766212015-06-11 13:10:431Bus
45865422015-06-11 16:47:081Metro
45965522015-06-12 10:43:031Metro
46066342015-06-12 13:00:511Metro
46166542015-06-12 13:01:061Metro
46266642015-06-12 13:01:161Metro
46366442015-06-12 13:01:171Metro
46462832015-06-13 13:03:211Bus
46562732015-06-13 13:03:241Bus
46662632015-06-13 13:03:331Bus
46762932015-06-13 13:03:481Bus
46867542015-06-13 14:35:501Walk
46967342015-06-13 14:35:551Walk
47067242015-06-13 14:36:171Walk
47167442015-06-13 14:36:241Walk
47265112015-06-14 09:21:141Walk
47365212015-06-14 09:21:231Walk
47465012015-06-14 09:21:271Walk
47565312015-06-14 09:21:461Walk
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;