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 7,151–7,175 of 9,738

entry_scan, page 287 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7151735942018-12-26 13:22:411Metro
7152735842018-12-26 13:23:131Metro
7153725012018-12-26 14:34:191Metro
7154725112018-12-26 14:34:441Metro
7155734652018-12-27 15:15:501Metro
7156734552018-12-27 15:15:561Metro
7157734452018-12-27 15:16:001Metro
7158734752018-12-27 15:16:111Metro
7159736012018-12-28 10:36:381Metro
7160736332018-12-28 14:36:061Bus
7161736232018-12-28 14:36:431Bus
7162736432018-12-29 11:09:111Other
7163736532018-12-29 11:09:391Other
7164728812018-12-30 13:55:441Other
7165728712018-12-30 13:56:141Other
7166736612019-01-03 14:57:251Bus
7167736712019-01-03 14:57:291Bus
7168736152019-01-04 10:38:081Walk
7169733112019-01-04 12:50:121Taxi
7170736812019-01-04 14:48:221Bus
7171736912019-01-05 09:20:541Walk
7172737012019-01-05 09:20:561Walk
7173726212019-01-05 16:27:321Walk
7174726512019-01-05 16:27:341Walk
7175726312019-01-05 16:28:011Walk
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;