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,251–3,275 of 9,738

entry_scan, page 131 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3251312542017-02-24 11:02:091Bus
3252312842017-02-24 11:02:211Bus
3253311942017-02-24 11:02:231Bus
3254309542017-02-24 11:02:291Bus
3255309942017-02-24 11:02:311Bus
3256310642017-02-24 11:02:331Bus
3257309742017-02-24 11:02:411Bus
3258311742017-02-24 11:02:491Bus
3259313542017-02-24 11:02:491Bus
3260310942017-02-24 11:02:571Bus
3261310242017-02-24 11:03:041Bus
3262312942017-02-24 11:03:131Bus
3263311242017-02-24 11:03:521Bus
3264310142017-02-24 11:04:131Bus
3265313142017-02-24 11:04:131Bus
3266311542017-02-24 11:04:191Bus
3267313342017-02-24 11:04:251Bus
3268311442017-02-24 11:04:431Bus
3269310442017-02-24 11:04:581Bus
3270310842017-02-24 11:05:041Bus
3271312042017-02-24 11:05:041Bus
3272313242017-02-24 11:05:101Bus
3273311142017-02-24 11:05:131Bus
3274313442017-02-24 11:05:241Bus
3275311042017-02-24 11:05:301Bus
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;