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 501–525 of 9,738

entry_scan, page 21 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
50169642015-06-20 10:08:081Other
50269542015-06-20 10:08:111Other
50370312015-06-21 12:34:261Other
50470412015-06-21 12:35:091Other
50570212015-06-21 12:35:101Other
50670522015-06-22 10:21:551Private Vehicle
50771212015-06-23 09:47:161Private Vehicle
50871312015-06-23 09:47:221Private Vehicle
50968312015-06-23 10:11:351Taxi
51068112015-06-23 10:11:371Taxi
51168212015-06-23 10:12:011Taxi
51271412015-06-23 11:14:481Metro
51370712015-06-24 09:54:321Metro
51470612015-06-24 09:54:331Metro
51570812015-06-24 09:54:331Metro
51671542015-06-25 09:12:211Walk
51771642015-06-25 09:12:421Walk
51871122015-06-26 09:09:221Metro
51970922015-06-26 09:09:461Metro
52071022015-06-26 09:09:471Metro
52171722015-06-26 14:25:241Metro
52272052015-06-27 11:37:161Bus
52371952015-06-27 11:37:531Bus
52472152015-06-27 12:25:051Metro
52572442015-06-28 10:43:191Walk
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;