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 51–75 of 9,738

entry_scan, page 3 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5116222015-03-21 11:47:221Private Vehicle
5216322015-03-22 10:30:031Walk
5316422015-03-22 10:30:301Walk
5410712015-03-23 09:31:441Walk
5516532015-03-23 10:50:201Train
5616822015-03-24 11:06:411Metro
5716922015-03-24 11:06:591Metro
5816722015-03-24 11:07:021Metro
5916622015-03-24 11:07:031Metro
6011012015-03-25 16:10:021Walk
6111112015-03-25 16:10:071Walk
6220412015-03-26 09:16:051Metro
6320312015-03-26 09:16:461Metro
6420722015-03-27 10:34:531Metro
6520622015-03-27 10:35:071Metro
6620522015-03-27 10:35:251Metro
6720852015-03-27 12:07:271Walk
6820952015-03-27 12:08:041Walk
6921012015-03-27 13:08:201Walk
7021112015-03-27 13:08:301Walk
7121212015-03-29 11:58:511Walk
7221312015-03-29 11:58:581Walk
7321822015-03-30 11:27:001Bus
7421722015-03-30 11:27:081Bus
7510912015-03-31 09:22:441Train
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;