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 1–25 of 9,738

entry_scan, page 1 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
16812015-03-01 10:22:541Walk
27012015-03-01 10:23:051Walk
37112015-03-01 10:23:061Walk
46912015-03-01 10:23:251Walk
57312015-03-02 10:16:071Bus
67412015-03-02 10:16:181Bus
7542015-03-03 10:30:241Metro
8642015-03-03 10:30:271Metro
97222015-03-03 11:45:331Train
10612015-03-03 13:30:430NULL
11542015-03-03 14:24:410NULL
127912015-03-04 14:37:121Metro
137812015-03-04 14:37:401Metro
14452015-03-04 16:16:111Bus
15352015-03-04 16:16:241Bus
168152015-03-05 11:56:061Walk
178612015-03-06 10:36:121Walk
188752015-03-06 11:10:531Walk
198812015-03-06 13:14:081Metro
208912015-03-06 13:14:241Metro
219022015-03-07 11:03:261Bus
229232015-03-08 09:53:001Metro
239132015-03-08 09:53:091Metro
24732015-03-08 14:25:271Metro
257752015-03-08 14:32:111Metro
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;