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,801–3,825 of 9,738

entry_scan, page 153 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3801396712017-05-25 14:22:131Metro
3802387012017-05-27 14:36:571Other
3803387112017-05-27 14:37:371Other
3804395912017-05-27 14:56:321Walk
3805395712017-05-27 14:56:431Walk
3806395812017-05-27 14:56:531Walk
3807395712017-05-27 16:37:130NULL
3808395812017-05-27 16:42:430NULL
3809395122017-05-28 09:23:551Walk
3810395022017-05-28 09:24:051Walk
3811396342017-05-28 09:59:291Walk
3812396242017-05-28 09:59:371Walk
3813396442017-05-28 09:59:411Walk
3814397352017-05-28 11:09:501Walk
3815397252017-05-28 11:09:581Walk
3816397422017-05-28 11:25:221Walk
3817397512017-05-28 12:09:181Walk
3818397612017-05-29 10:56:211Bus
3819397712017-05-29 15:12:261Metro
3820398122017-06-01 10:50:011Walk
3821398222017-06-01 10:50:431Walk
3822398012017-06-04 10:10:501Taxi
3823399012017-06-04 11:25:391Walk
3824398912017-06-04 11:25:441Walk
3825398812017-06-04 11:25:521Walk
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;