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 676–700 of 9,738

entry_scan, page 28 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
67684912015-07-24 10:33:231Metro
67784812015-07-24 10:33:241Metro
67884212015-07-24 11:22:421Walk
67984412015-07-24 11:22:541Walk
68084012015-07-24 11:23:031Walk
68184312015-07-24 11:23:071Walk
68284112015-07-24 11:23:131Walk
68385512015-07-25 10:22:531Walk
68485412015-07-25 10:22:561Walk
68585212015-07-25 10:22:571Walk
68685612015-07-25 10:23:001Walk
68785312015-07-25 10:23:061Walk
68881422015-07-25 13:58:411Train
68985712015-07-25 14:54:541Other
69085822015-07-25 15:14:181Metro
69186432015-07-26 09:24:381Metro
69286332015-07-26 09:24:421Metro
69386132015-07-26 09:24:431Metro
69486232015-07-26 09:25:031Metro
69576422015-07-26 12:25:101Walk
69676522015-07-26 12:25:301Walk
69782522015-07-27 15:10:401Bus
69887832015-07-29 09:23:381Metro
69987932015-07-29 09:23:521Metro
70087732015-07-29 09:24:031Metro
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;