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 4,751–4,775 of 9,738

entry_scan, page 191 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4751469812017-11-22 12:09:231Walk
4752470712017-11-22 12:10:081Walk
4753471512017-11-22 12:10:101Walk
4754470212017-11-22 12:10:151Walk
4755470512017-11-22 12:10:281Walk
4756472812017-11-22 12:10:311Walk
4757471612017-11-22 12:10:431Walk
4758470112017-11-22 12:10:441Walk
4759470612017-11-22 12:10:551Walk
4760470412017-11-22 12:11:071Walk
4761471212017-11-22 12:11:071Walk
4762472312017-11-22 12:11:191Walk
4763470312017-11-22 12:11:401Walk
4764474012017-11-22 12:12:001Walk
4765470912017-11-22 12:12:071Walk
4766473412017-11-22 12:12:131Walk
4767473512017-11-22 12:12:191Walk
4768472712017-11-22 12:12:211Walk
4769472012017-11-22 12:12:341Walk
4770473112017-11-22 12:12:351Walk
4771472112017-11-22 12:12:431Walk
4772472612017-11-22 12:12:511Walk
4773472212017-11-22 12:12:521Walk
4774471112017-11-22 12:12:541Walk
4775471312017-11-22 12:12:551Walk
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;