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,051–6,075 of 9,738

entry_scan, page 243 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6051634012018-08-02 11:41:011Metro
6052634112018-08-02 11:41:331Metro
6053634212018-08-02 11:51:541Metro
6054630652018-08-02 15:59:561Walk
6055633112018-08-02 16:04:081Walk
6056632912018-08-02 16:04:231Walk
6057633012018-08-02 16:04:451Walk
6058632812018-08-02 16:30:111Metro
6059634922018-08-03 11:09:311Bus
6060634722018-08-03 11:09:391Bus
6061634622018-08-03 11:09:591Bus
6062634822018-08-03 11:10:061Bus
6063634412018-08-04 11:59:191Bus
6064634312018-08-04 11:59:201Bus
6065639112018-08-04 13:11:101Taxi
6066639012018-08-04 13:11:201Taxi
6067639212018-08-04 13:11:211Taxi
6068639312018-08-04 13:11:261Taxi
6069639452018-08-04 16:49:041Walk
6070639552018-08-04 16:49:501Walk
6071639612018-08-05 11:05:101Train
6072639912018-08-05 13:00:201Walk
6073640012018-08-05 13:00:471Walk
6074639812018-08-05 13:01:011Walk
6075639712018-08-05 13:01:051Walk
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;