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

entry_scan, page 218 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5426567012018-04-28 12:33:381Bus
5427567222018-04-29 11:28:541Metro
5428567122018-04-29 11:29:351Metro
5429566012018-04-30 11:05:041Walk
5430565912018-04-30 11:05:391Walk
5431564312018-04-30 12:24:291Walk
5432564412018-04-30 12:24:441Walk
5433564212018-04-30 12:25:001Walk
5434567332018-05-01 11:11:031Taxi
5435567622018-05-02 10:21:141Metro
5436556932018-05-02 11:33:261Taxi
5437552822018-05-02 11:38:321Metro
5438553122018-05-02 11:38:421Metro
5439553022018-05-02 11:38:481Metro
5440552722018-05-02 11:38:551Metro
5441552922018-05-02 11:39:161Metro
5442567712018-05-02 14:35:551Walk
5443568512018-05-04 09:31:091Other
5444506742018-05-04 12:17:581Bus
5445506842018-05-04 12:18:081Bus
5446506942018-05-04 12:18:141Bus
5447507542018-05-04 12:18:221Bus
5448507342018-05-04 12:18:301Bus
5449507042018-05-04 12:18:311Bus
5450507942018-05-04 12:18:431Bus
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;