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,901–3,925 of 9,738

entry_scan, page 157 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3901378842017-06-14 12:14:341Bus
3902379142017-06-14 12:14:371Bus
3903379542017-06-14 12:14:421Bus
3904379042017-06-14 12:14:591Bus
3905380442017-06-14 12:14:591Bus
3906379342017-06-14 12:15:071Bus
3907380142017-06-14 12:15:131Bus
3908379942017-06-14 12:15:271Bus
3909381142017-06-14 12:15:371Bus
3910380342017-06-14 12:15:431Bus
3911379842017-06-14 12:15:461Bus
3912379642017-06-14 12:16:071Bus
3913380842017-06-14 12:16:311Bus
3914380642017-06-14 12:16:411Bus
3915380742017-06-14 12:17:071Bus
3916381042017-06-14 12:17:311Bus
3917396042017-06-14 14:10:220NULL
3918396112017-06-14 14:30:410NULL
3919399522017-06-15 12:27:191Bus
3920399822017-06-15 12:27:231Bus
3921399622017-06-15 12:27:321Bus
3922399722017-06-15 12:27:341Bus
3923399422017-06-15 12:28:071Bus
3924392712017-06-16 09:12:581Train
3925392812017-06-16 09:13:161Train
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;