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,426–7,450 of 9,738

entry_scan, page 298 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7426713842019-02-27 12:58:341Metro
7427714442019-02-27 13:00:511Metro
7428762242019-02-28 11:33:221Taxi
7429762342019-02-28 11:33:411Taxi
7430760812019-02-28 14:37:591Walk
7431760912019-02-28 14:38:021Walk
7432760712019-02-28 14:38:091Walk
7433760612019-02-28 14:38:441Walk
7434773612019-03-01 11:01:541Private Vehicle
7435773712019-03-01 11:01:561Private Vehicle
7436773812019-03-01 11:02:061Private Vehicle
7437774352019-03-02 10:38:451Bus
7438774552019-03-02 10:38:461Bus
7439774152019-03-02 10:38:581Bus
7440774252019-03-02 10:39:001Bus
7441774452019-03-02 10:39:051Bus
7442771712019-03-03 12:38:501Walk
7443771612019-03-03 12:39:071Walk
7444775622019-03-04 10:29:351Bus
7445775522019-03-04 10:29:501Bus
7446775422019-03-04 10:29:511Bus
7447776212019-03-05 09:36:231Walk
7448776512019-03-05 09:36:281Walk
7449776412019-03-05 09:36:581Walk
7450775152019-03-05 11:24:561Walk
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;