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 9,626–9,650 of 9,738

entry_scan, page 386 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9626973812020-01-29 13:01:281Other
9627971622020-01-29 13:56:151Train
9628974112020-01-31 12:39:151Metro
9629970712020-02-01 11:22:001Metro
9630970812020-02-01 11:22:441Metro
9631975312020-02-01 11:28:201Walk
9632975212020-02-01 11:28:351Walk
9633975612020-02-01 12:32:121Metro
9634975712020-02-01 12:32:161Metro
9635976032020-02-02 10:52:581Taxi
9636975932020-02-02 10:53:181Taxi
9637976142020-02-02 12:45:341Walk
9638976242020-02-02 12:46:201Walk
9639975932020-02-02 13:10:420NULL
9640976032020-02-02 14:27:510NULL
9641976332020-02-02 16:21:301Walk
9642976532020-02-02 16:21:431Walk
9643976432020-02-02 16:21:591Walk
9644976622020-02-04 09:06:461Bus
9645976822020-02-04 09:06:461Bus
9646976722020-02-04 09:07:191Bus
9647975112020-02-04 14:30:231Bus
9648975822020-02-05 11:54:581Metro
9649974212020-02-05 12:24:401Bus
9650974312020-02-05 12:25:081Bus
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;