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,151–3,175 of 9,738

entry_scan, page 127 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3151342012017-01-20 14:19:551Metro
3152340532017-01-21 10:05:581Walk
3153340432017-01-21 10:06:261Walk
3154341242017-01-22 11:20:241Walk
3155347212017-01-23 12:07:501Walk
3156347112017-01-23 12:08:281Walk
3157342312017-01-24 10:01:461Walk
3158341322017-01-26 10:35:501Walk
3159341422017-01-26 10:35:551Walk
3160341512017-01-26 11:00:501Metro
3161341712017-01-26 11:00:571Metro
3162341612017-01-26 11:01:001Metro
3163341812017-01-26 11:01:261Metro
3164341912017-01-26 11:01:301Metro
3165348352017-01-26 13:35:511Bus
3166348452017-01-27 09:14:081Bus
3167348532017-01-27 10:08:351Other
3168348652017-01-27 11:01:071Metro
3169348752017-01-27 11:01:231Metro
3170347832017-01-27 13:22:431Walk
3171347932017-01-27 13:22:431Walk
3172348842017-01-27 15:25:191Walk
3173348942017-01-27 15:25:281Walk
3174349142017-01-27 15:25:441Walk
3175349042017-01-27 15:25:501Walk
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;