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 4,951–4,975 of 9,738

entry_scan, page 199 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4951514412018-01-15 10:18:331Metro
4952514512018-01-15 10:18:551Metro
4953514312018-01-15 10:18:561Metro
4954514652018-01-15 10:58:501Train
4955514752018-01-15 10:59:101Train
4956512312018-01-16 11:27:061Bus
4957504412018-01-16 13:01:331Walk
4958520042018-01-17 12:45:501Other
4959504632018-01-17 15:45:201Bus
4960520312018-01-18 10:19:441Train
4961520212018-01-18 10:19:471Train
4962520112018-01-18 10:19:571Train
4963486222018-01-18 11:52:281Walk
4964486122018-01-18 11:53:041Walk
4965486752018-01-19 09:06:531Metro
4966486852018-01-19 09:07:121Metro
4967499312018-01-19 13:04:091Metro
4968499412018-01-19 13:04:171Metro
4969499512018-01-19 13:04:331Metro
4970499712018-01-19 13:04:411Metro
4971499612018-01-19 13:04:451Metro
4972500512018-01-19 13:04:571Metro
4973500012018-01-19 13:04:581Metro
4974499912018-01-19 13:05:031Metro
4975499812018-01-19 13:05:041Metro
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;