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,826–7,850 of 9,738

entry_scan, page 314 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7826769642019-04-19 13:10:151Bus
7827770542019-04-19 13:10:211Bus
7828770942019-04-19 13:10:411Bus
7829771142019-04-19 13:10:461Bus
7830768442019-04-19 13:10:571Bus
7831768642019-04-19 13:11:011Bus
7832770842019-04-19 13:11:151Bus
7833768942019-04-19 13:11:341Bus
7834770642019-04-19 13:11:401Bus
7835768842019-04-19 13:11:451Bus
7836769842019-04-19 13:11:511Bus
7837768542019-04-19 13:12:061Bus
7838769242019-04-19 13:12:071Bus
7839769542019-04-19 13:12:291Bus
7840769042019-04-19 13:12:331Bus
7841770342019-04-19 13:13:011Bus
7842770742019-04-19 13:13:031Bus
7843770442019-04-19 13:13:461Bus
7844770242019-04-19 13:13:571Bus
7845810012019-04-20 11:46:241Bus
7846809912019-04-20 11:46:511Bus
7847805612019-04-21 12:58:451Walk
7848810432019-04-21 16:11:121Walk
7849810852019-04-22 09:52:321Walk
7850810752019-04-22 09:53:081Walk
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;