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,076–7,100 of 9,738

entry_scan, page 284 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7076734312018-12-23 14:08:301Walk
7077662512018-12-24 10:22:561Bus
7078662612018-12-24 10:23:071Bus
7079662712018-12-24 10:23:181Bus
7080663012018-12-24 10:23:311Bus
7081662812018-12-24 10:23:321Bus
7082663312018-12-24 10:23:361Bus
7083663512018-12-24 10:23:361Bus
7084662912018-12-24 10:23:521Bus
7085663612018-12-24 10:24:021Bus
7086663712018-12-24 10:24:081Bus
7087663212018-12-24 10:24:131Bus
7088663112018-12-24 10:24:141Bus
7089663412018-12-24 10:24:171Bus
7090664712018-12-24 10:24:461Bus
7091664112018-12-24 10:24:481Bus
7092664412018-12-24 10:25:091Bus
7093663912018-12-24 10:25:161Bus
7094666012018-12-24 10:25:161Bus
7095666512018-12-24 10:25:361Bus
7096664312018-12-24 10:25:381Bus
7097666612018-12-24 10:25:401Bus
7098664512018-12-24 10:25:561Bus
7099663812018-12-24 10:25:581Bus
7100667212018-12-24 10:26:041Bus
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;