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,676–3,700 of 9,738

entry_scan, page 148 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3676342942017-05-03 11:58:551Bus
3677343142017-05-03 11:59:001Bus
3678343542017-05-03 11:59:011Bus
3679343242017-05-03 11:59:131Bus
3680343742017-05-03 11:59:151Bus
3681343042017-05-03 11:59:251Bus
3682344942017-05-03 11:59:331Bus
3683343442017-05-03 11:59:451Bus
3684344342017-05-03 11:59:491Bus
3685345442017-05-03 11:59:491Bus
3686343342017-05-03 12:00:031Bus
3687345842017-05-03 12:00:051Bus
3688344542017-05-03 12:00:101Bus
3689344042017-05-03 12:00:221Bus
3690345742017-05-03 12:00:251Bus
3691345642017-05-03 12:00:431Bus
3692343842017-05-03 12:00:481Bus
3693343942017-05-03 12:01:011Bus
3694346942017-05-03 12:01:101Bus
3695344642017-05-03 12:01:211Bus
3696345942017-05-03 12:01:531Bus
3697345242017-05-03 12:02:051Bus
3698345542017-05-03 12:02:271Bus
3699345142017-05-03 12:02:511Bus
3700345042017-05-03 12:02:551Bus
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;