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,401–3,425 of 9,738

entry_scan, page 137 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3401325942017-03-15 11:21:381Walk
3402325842017-03-15 11:21:501Walk
3403326142017-03-15 11:22:021Walk
3404326542017-03-15 11:22:021Walk
3405326842017-03-15 11:22:201Walk
3406327242017-03-15 11:22:251Walk
3407326042017-03-15 11:22:281Walk
3408328442017-03-15 11:22:541Walk
3409327442017-03-15 11:22:561Walk
3410326942017-03-15 11:22:581Walk
3411327042017-03-15 11:23:061Walk
3412327642017-03-15 11:23:081Walk
3413326342017-03-15 11:23:101Walk
3414326442017-03-15 11:23:131Walk
3415326642017-03-15 11:23:131Walk
3416327942017-03-15 11:23:261Walk
3417329542017-03-15 11:23:381Walk
3418328542017-03-15 11:24:021Walk
3419328142017-03-15 11:24:061Walk
3420327342017-03-15 11:24:101Walk
3421326742017-03-15 11:24:201Walk
3422329642017-03-15 11:24:251Walk
3423328242017-03-15 11:24:421Walk
3424328042017-03-15 11:24:531Walk
3425327142017-03-15 11:25:021Walk
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;