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,076–5,100 of 9,738

entry_scan, page 204 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5076526542018-02-13 12:50:441Walk
5077526342018-02-13 12:51:031Walk
5078526442018-02-13 12:51:131Walk
5079526242018-02-13 12:51:271Walk
5080528022018-02-13 14:19:191Metro
5081528112018-02-14 10:13:151Train
5082528212018-02-14 10:13:451Train
5083524342018-02-15 09:32:181Metro
5084524242018-02-15 09:32:261Metro
5085525012018-02-15 10:16:101Other
5086525112018-02-15 10:16:381Other
5087528342018-02-15 13:31:441Taxi
5088528542018-02-15 13:31:591Taxi
5089528642018-02-15 13:32:011Taxi
5090528442018-02-15 13:32:261Taxi
5091527552018-02-16 09:33:441Walk
5092528812018-02-16 14:00:561Walk
5093528712018-02-16 14:01:291Walk
5094528822018-02-16 16:43:170NULL
5095528712018-02-16 16:54:080NULL
5096526152018-02-17 10:43:261Walk
5097529112018-02-17 13:59:241Train
5098529822018-02-18 15:39:321Metro
5099529722018-02-18 15:40:101Metro
5100527222018-02-21 13:04:451Private 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;