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,626–3,650 of 9,738

entry_scan, page 146 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3626374722017-04-22 14:53:581Metro
3627376712017-04-22 15:04:450NULL
3628383132017-04-23 09:59:131Metro
3629383232017-04-23 09:59:361Metro
3630383512017-04-23 11:27:561Metro
3631383912017-04-23 11:28:001Metro
3632383712017-04-23 11:28:081Metro
3633383812017-04-23 11:28:321Metro
3634383612017-04-23 11:28:391Metro
3635371712017-04-23 13:42:081Walk
3636371512017-04-23 13:42:111Walk
3637371412017-04-23 13:42:171Walk
3638371612017-04-23 13:42:361Walk
3639384122017-04-23 14:03:051Bus
3640384022017-04-23 14:03:131Bus
3641384432017-04-24 09:18:351Walk
3642384532017-04-24 09:18:351Walk
3643384332017-04-24 09:18:471Walk
3644384732017-04-24 09:18:531Walk
3645384632017-04-24 09:18:541Walk
3646384852017-04-24 12:51:251Other
3647372742017-04-26 09:33:441Bus
3648385012017-04-26 15:44:481Walk
3649385212017-04-28 10:01:561Train
3650385312017-04-28 10:01:591Train
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;