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,951–7,975 of 9,738

entry_scan, page 319 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7951820712019-05-12 09:47:391Walk
7952797912019-05-13 11:05:011Walk
7953821612019-05-13 12:06:391Metro
7954821712019-05-13 12:06:421Metro
7955821812019-05-13 13:34:461Walk
7956821912019-05-13 13:34:541Walk
7957822012019-05-13 13:35:151Walk
7958817942019-05-13 14:48:141Walk
7959818142019-05-13 14:48:191Walk
7960818042019-05-13 14:48:431Walk
7961820942019-05-14 12:29:331Taxi
7962821042019-05-14 12:29:351Taxi
7963820842019-05-14 12:30:041Taxi
7964822512019-05-15 11:06:591Train
7965822412019-05-15 11:07:111Train
7966822312019-05-15 11:07:241Train
7967822442019-05-15 13:12:170NULL
7968822312019-05-15 13:15:260NULL
7969822512019-05-15 14:20:280NULL
7970818942019-05-16 14:36:501Walk
7971818842019-05-16 14:36:591Walk
7972819042019-05-16 14:37:191Walk
7973819612019-05-17 09:05:581Metro
7974819712019-05-17 09:06:071Metro
7975823322019-05-17 09:46:201Walk
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;