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 6,276–6,300 of 9,738

entry_scan, page 252 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6276592542018-08-27 10:09:571Bus
6277592942018-08-27 10:10:001Bus
6278592342018-08-27 10:10:061Bus
6279593042018-08-27 10:10:081Bus
6280592442018-08-27 10:10:161Bus
6281591742018-08-27 10:10:511Bus
6282592142018-08-27 10:11:011Bus
6283593542018-08-27 10:11:271Bus
6284592842018-08-27 10:11:281Bus
6285592042018-08-27 10:11:361Bus
6286593442018-08-27 10:12:341Bus
6287592742018-08-27 10:13:211Bus
6288593642018-08-27 10:13:361Bus
6289593142018-08-27 10:14:211Bus
6290656612018-08-27 10:25:411Walk
6291570712018-08-27 10:26:541Bus
6292570812018-08-27 10:27:011Bus
6293571012018-08-27 10:27:101Bus
6294571312018-08-27 10:27:341Bus
6295571112018-08-27 10:27:391Bus
6296571412018-08-27 10:27:421Bus
6297572012018-08-27 10:27:441Bus
6298571212018-08-27 10:27:461Bus
6299571512018-08-27 10:28:181Bus
6300572712018-08-27 10:28:251Bus
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;