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 2,676–2,700 of 9,738

entry_scan, page 108 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2676275622016-09-10 09:31:501Walk
2677275922016-09-10 09:31:531Walk
2678275722016-09-10 09:31:551Walk
2679275822016-09-10 09:31:581Walk
2680275522016-09-10 09:32:301Walk
2681275752016-09-10 11:44:350NULL
2682275842016-09-10 12:00:280NULL
2683275922016-09-10 12:20:470NULL
2684275532016-09-10 12:48:050NULL
2685275622016-09-10 13:04:420NULL
2686280212016-09-10 13:37:021Walk
2687276242016-09-11 11:13:131Metro
2688276142016-09-11 11:13:181Metro
2689276342016-09-11 11:13:201Metro
2690276542016-09-11 11:13:231Metro
2691276442016-09-11 11:13:331Metro
2692280512016-09-12 11:44:421Bus
2693280412016-09-12 11:45:201Bus
2694281112016-09-13 09:44:411Walk
2695281222016-09-13 14:50:051Other
2696273312016-09-15 11:25:021Metro
2697273112016-09-15 11:25:131Metro
2698273212016-09-15 11:25:331Metro
2699281322016-09-15 14:49:471Other
2700278412016-09-16 09:10:241Metro
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;