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 426–450 of 9,738

entry_scan, page 18 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
42663442015-06-06 10:21:321Walk
42763732015-06-06 11:11:421Metro
42863342015-06-06 12:22:030NULL
42963822015-06-06 13:29:311Metro
43051442015-06-06 13:52:541Metro
43151742015-06-06 13:52:591Metro
43251642015-06-06 13:53:001Metro
43351542015-06-06 13:53:081Metro
43463442015-06-06 14:12:440NULL
43563912015-06-06 15:47:001Walk
43660712015-06-07 14:04:151Bus
43764322015-06-08 10:47:461Metro
43864522015-06-08 10:47:461Metro
43964622015-06-08 10:47:481Metro
44064422015-06-08 10:48:031Metro
44164122015-06-08 10:49:301Metro
44264222015-06-08 10:49:351Metro
44364022015-06-08 10:49:441Metro
44464812015-06-08 11:22:321Metro
44564712015-06-08 11:22:401Metro
44664922015-06-08 14:57:461Private Vehicle
44763622015-06-09 09:21:541Metro
44863522015-06-09 09:22:001Metro
44962542015-06-10 15:01:401Bus
45062442015-06-10 15:01:461Bus
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;