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 5,251–5,275 of 9,738

entry_scan, page 211 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5251519312018-03-23 12:08:141Metro
5252519812018-03-23 12:08:221Metro
5253519912018-03-23 12:11:171Metro
5254546212018-03-24 10:59:161Walk
5255546312018-03-24 10:59:401Walk
5256544132018-03-25 11:18:591Private Vehicle
5257545442018-03-25 11:33:201Bus
5258545542018-03-25 11:33:311Bus
5259545642018-03-25 11:33:371Bus
5260546712018-03-26 10:54:481Metro
5261546612018-03-26 10:54:581Metro
5262546932018-03-26 12:24:061Train
5263546832018-03-26 12:24:351Train
5264547012018-03-28 10:17:521Walk
5265543142018-03-29 09:46:161Bus
5266547812018-03-29 09:49:441Metro
5267547712018-03-29 09:50:101Metro
5268548012018-03-29 10:05:011Taxi
5269547912018-03-29 10:05:091Taxi
5270548112018-03-29 10:05:261Taxi
5271547122018-03-29 11:32:421Walk
5272547812018-03-29 11:34:120NULL
5273547712018-03-29 11:37:560NULL
5274548242018-03-30 11:35:121Metro
5275548342018-03-30 11:35:321Metro
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;