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 6,776–6,800 of 9,738

entry_scan, page 272 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6776694712018-11-09 09:29:441Metro
6777702932018-11-09 10:24:481Other
6778702832018-11-09 10:25:291Other
6779702732018-11-09 10:25:331Other
6780703732018-11-10 10:27:161Metro
6781703612018-11-10 11:35:131Metro
6782703412018-11-10 15:53:121Taxi
6783703512018-11-10 15:53:181Taxi
6784703812018-11-11 09:18:161Walk
6785703912018-11-11 09:18:191Walk
6786701012018-11-11 11:00:121Walk
6787700712018-11-11 11:00:161Walk
6788700812018-11-11 11:00:241Walk
6789700912018-11-11 11:00:431Walk
6790704212018-11-11 12:18:281Taxi
6791703022018-11-11 12:55:391Metro
6792703322018-11-11 12:55:411Metro
6793703222018-11-11 12:55:451Metro
6794703122018-11-11 12:55:561Metro
6795701822018-11-11 12:58:121Walk
6796700612018-11-12 10:57:571Other
6797700512018-11-12 10:58:261Other
6798705212018-11-13 11:25:361Private Vehicle
6799705522018-11-13 14:16:031Metro
6800705722018-11-13 14:16:101Metro
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;