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 101–125 of 9,738

entry_scan, page 5 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
10124912015-04-05 11:15:381Metro
10225012015-04-05 11:16:011Metro
10324712015-04-05 11:16:041Metro
10425112015-04-05 11:16:071Metro
10524812015-04-05 11:16:161Metro
10625432015-04-05 12:46:121Metro
10725632015-04-06 11:00:201Metro
10825732015-04-06 11:00:331Metro
10925812015-04-06 11:21:581Walk
11025912015-04-06 11:21:581Walk
11125732015-04-06 13:06:590NULL
11225632015-04-06 14:55:420NULL
11321632015-04-07 10:45:071Metro
11410652015-04-08 14:09:291Bus
11526532015-04-09 10:28:011Taxi
11626232015-04-09 10:28:211Taxi
11726332015-04-09 10:28:221Taxi
11826432015-04-09 10:28:331Taxi
11926712015-04-10 09:53:371Metro
12026822015-04-10 10:28:341Private Vehicle
12126922015-04-10 10:28:481Private Vehicle
12227012015-04-10 14:01:281Walk
12323312015-04-11 09:54:371Train
12427212015-04-11 16:14:541Bus
12527112015-04-11 16:15:071Bus
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;