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 651–675 of 9,738

entry_scan, page 27 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
65182452015-07-21 11:49:441Other
65282142015-07-21 11:50:271Taxi
65382242015-07-21 11:50:311Taxi
65482352015-07-21 13:46:440NULL
65582452015-07-21 14:40:530NULL
65682612015-07-22 11:46:151Metro
65782722015-07-22 12:03:241Metro
65879312015-07-22 12:25:131Walk
65979212015-07-22 12:25:411Walk
66079112015-07-22 12:25:511Walk
66182912015-07-22 12:33:201Walk
66282812015-07-22 12:33:351Walk
66383052015-07-22 12:56:241Metro
66483152015-07-22 12:56:531Metro
66581342015-07-23 09:10:361Taxi
66681242015-07-23 09:10:551Taxi
66780532015-07-23 10:28:211Walk
66883312015-07-23 11:17:391Other
66983222015-07-23 11:22:141Metro
67080532015-07-23 12:08:020NULL
67183422015-07-23 13:00:351Bus
67283532015-07-23 14:18:301Walk
67384632015-07-24 09:01:171Metro
67484532015-07-24 09:01:211Metro
67584712015-07-24 09:32:101Walk
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;