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,101–9,125 of 9,738

entry_scan, page 365 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9101937212019-11-08 13:43:341Walk
9102937112019-11-08 13:43:561Walk
9103934812019-11-08 15:33:281Walk
9104934912019-11-08 15:34:151Walk
9105934912019-11-08 17:15:560NULL
9106934812019-11-08 17:26:030NULL
9107918442019-11-09 11:29:551Bus
9108918542019-11-09 11:30:091Bus
9109918642019-11-09 11:30:131Bus
9110918742019-11-09 11:30:341Bus
9111918842019-11-09 11:30:351Bus
9112919342019-11-09 11:30:401Bus
9113919042019-11-09 11:30:431Bus
9114919442019-11-09 11:30:451Bus
9115918942019-11-09 11:30:501Bus
9116920142019-11-09 11:31:031Bus
9117919142019-11-09 11:31:051Bus
9118919842019-11-09 11:31:051Bus
9119919242019-11-09 11:31:151Bus
9120920342019-11-09 11:32:081Bus
9121920742019-11-09 11:32:131Bus
9122919542019-11-09 11:32:181Bus
9123920842019-11-09 11:32:191Bus
9124919942019-11-09 11:32:251Bus
9125919642019-11-09 11:32:311Bus
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;