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 26–50 of 9,738

entry_scan, page 2 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
267652015-03-08 14:32:441Metro
276732015-03-09 11:46:511Metro
286632015-03-09 11:47:131Metro
298032015-03-09 16:51:541Walk
3010112015-03-12 12:13:271Metro
3110012015-03-12 12:13:411Metro
328512015-03-12 12:19:551Walk
338312015-03-12 12:20:091Walk
348412015-03-12 12:20:141Walk
3510212015-03-13 10:44:571Walk
369412015-03-13 11:47:191Walk
379312015-03-13 11:47:511Walk
389612015-03-13 11:47:551Walk
3910322015-03-14 11:36:521Metro
407522015-03-14 13:16:331Metro
4110422015-03-14 13:34:561Private Vehicle
4210522015-03-14 13:35:011Private Vehicle
439712015-03-15 09:08:311Walk
44242015-03-15 13:40:501Taxi
45142015-03-15 13:41:301Taxi
4615922015-03-21 10:47:081Private Vehicle
4716022015-03-21 10:47:101Private Vehicle
4816122015-03-21 10:47:131Private Vehicle
4915722015-03-21 10:47:181Private Vehicle
5015822015-03-21 10:47:421Private Vehicle
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;