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 3,226–3,250 of 9,738

entry_scan, page 130 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3226354752017-02-22 14:43:081Walk
3227354952017-02-22 14:43:161Walk
3228355242017-02-23 10:18:381Metro
3229355142017-02-23 10:18:511Metro
3230308142017-02-24 10:59:131Bus
3231308242017-02-24 10:59:221Bus
3232308442017-02-24 10:59:371Bus
3233308342017-02-24 10:59:411Bus
3234308642017-02-24 10:59:431Bus
3235308742017-02-24 10:59:551Bus
3236308542017-02-24 11:00:011Bus
3237309342017-02-24 11:00:131Bus
3238308942017-02-24 11:00:251Bus
3239310042017-02-24 11:00:481Bus
3240308842017-02-24 11:00:511Bus
3241310742017-02-24 11:00:571Bus
3242309842017-02-24 11:01:121Bus
3243309042017-02-24 11:01:281Bus
3244309442017-02-24 11:01:361Bus
3245309142017-02-24 11:01:431Bus
3246309242017-02-24 11:01:581Bus
3247309642017-02-24 11:01:581Bus
3248310542017-02-24 11:02:011Bus
3249311642017-02-24 11:02:081Bus
3250310342017-02-24 11:02:091Bus
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;