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 751–775 of 9,738

entry_scan, page 31 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
75140842015-08-02 11:59:391Bus
75241542015-08-02 11:59:441Bus
75339742015-08-02 11:59:481Bus
75441642015-08-02 11:59:521Bus
75540642015-08-02 12:00:021Bus
75641942015-08-02 12:00:161Bus
75741442015-08-02 12:00:241Bus
75839342015-08-02 12:00:271Bus
75940742015-08-02 12:00:541Bus
76041042015-08-02 12:01:161Bus
76141242015-08-02 12:01:381Bus
76239942015-08-02 12:01:571Bus
76340442015-08-02 12:02:181Bus
76441842015-08-02 12:03:361Bus
76541742015-08-02 12:04:151Bus
76686012015-08-02 14:45:311Bus
76785912015-08-02 14:46:201Bus
76890212015-08-03 10:26:541Taxi
76990012015-08-03 10:27:121Taxi
77090112015-08-03 10:27:391Taxi
77189412015-08-03 12:51:301Walk
77289312015-08-03 12:51:481Walk
77390612015-08-04 09:09:391Bus
77490522015-08-04 10:11:521Metro
77585012015-08-04 10:28:501Metro
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;