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 376–400 of 9,738

entry_scan, page 16 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
37611642015-05-28 10:00:151Bus
37711942015-05-28 10:00:301Bus
37812442015-05-28 10:00:341Bus
37912542015-05-28 10:00:411Bus
38011842015-05-28 10:00:451Bus
38112342015-05-28 10:00:451Bus
38213242015-05-28 10:01:031Bus
38313342015-05-28 10:01:091Bus
38414242015-05-28 10:01:131Bus
38512742015-05-28 10:01:151Bus
38613142015-05-28 10:01:331Bus
38712942015-05-28 10:01:551Bus
38813442015-05-28 10:02:001Bus
38913642015-05-28 10:02:011Bus
39013042015-05-28 10:02:081Bus
39114142015-05-28 10:02:121Bus
39215442015-05-28 10:02:201Bus
39313542015-05-28 10:02:251Bus
39413842015-05-28 10:02:271Bus
39514042015-05-28 10:03:051Bus
39614342015-05-28 10:03:581Bus
39713942015-05-28 10:04:111Bus
39814842015-05-28 10:04:151Bus
39914542015-05-28 10:04:331Bus
40015642015-05-28 10:04:421Bus
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;