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 401–425 of 9,738

entry_scan, page 17 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
40114942015-05-28 10:04:531Bus
40215042015-05-28 10:05:041Bus
40314742015-05-28 10:05:231Bus
40414642015-05-28 10:06:001Bus
40515542015-05-28 10:07:131Bus
40615142015-05-28 10:07:151Bus
40750242015-05-28 10:31:041Walk
40850342015-05-28 10:31:141Walk
40961012015-05-28 10:33:131Metro
41061532015-05-29 09:50:541Walk
41161752015-05-29 10:52:551Metro
41261952015-05-29 10:53:051Metro
41361852015-05-29 10:53:131Metro
41461652015-05-29 10:53:331Metro
41543242015-05-30 10:00:061Metro
41643342015-05-30 10:00:111Metro
41743442015-05-30 10:00:111Metro
41860042015-05-31 15:56:521Walk
41959942015-05-31 15:56:571Walk
42054012015-05-31 16:49:561Other
42162212015-06-01 13:18:061Walk
42262312015-06-01 13:18:261Walk
42363012015-06-03 11:23:341Metro
42463112015-06-03 11:24:061Metro
42563342015-06-06 10:21:231Walk
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;