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,301–3,325 of 9,738

entry_scan, page 133 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3301357512017-03-01 10:40:031Walk
3302357412017-03-01 10:40:041Walk
3303355842017-03-01 13:30:331Bus
3304351212017-03-02 11:32:111Bus
3305351112017-03-02 11:32:311Bus
3306351112017-03-02 13:51:220NULL
3307351212017-03-02 14:02:280NULL
3308358412017-03-03 10:31:491Metro
3309358612017-03-03 10:32:031Metro
3310358312017-03-03 10:32:121Metro
3311358512017-03-03 10:32:171Metro
3312355622017-03-03 15:44:301Metro
3313359112017-03-04 10:15:191Walk
3314359122017-03-04 13:26:510NULL
3315352612017-03-05 09:08:121Metro
3316352712017-03-05 09:08:191Metro
3317352512017-03-05 09:08:461Metro
3318352812017-03-05 09:08:481Metro
3319359212017-03-05 10:50:161Taxi
3320359312017-03-05 10:50:481Taxi
3321358812017-03-05 10:52:031Metro
3322358912017-03-05 10:52:261Metro
3323358712017-03-05 10:52:351Metro
3324359212017-03-05 12:58:100NULL
3325359312017-03-05 14:30:090NULL
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;