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 701–725 of 9,738

entry_scan, page 29 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
70187122015-07-29 09:36:341Walk
70287222015-07-29 09:36:341Walk
70386652015-07-29 11:23:381Other
70486552015-07-29 11:23:461Other
70588812015-07-29 13:00:131Metro
70688712015-07-29 13:00:221Metro
70789132015-07-30 10:59:371Walk
70889232015-07-30 11:00:001Walk
70989622015-08-01 09:37:561Taxi
71089522015-08-01 09:37:581Taxi
71189742015-08-01 11:43:251Bus
71236142015-08-02 11:53:121Bus
71336242015-08-02 11:53:161Bus
71436342015-08-02 11:53:201Bus
71536442015-08-02 11:53:421Bus
71636542015-08-02 11:53:521Bus
71736642015-08-02 11:54:071Bus
71836842015-08-02 11:54:081Bus
71936942015-08-02 11:54:241Bus
72036742015-08-02 11:54:301Bus
72138142015-08-02 11:54:371Bus
72237442015-08-02 11:54:481Bus
72337342015-08-02 11:54:511Bus
72439042015-08-02 11:54:561Bus
72538542015-08-02 11:54:571Bus
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;