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 126–150 of 9,738

entry_scan, page 6 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
12627412015-04-11 16:15:231Bus
12727312015-04-11 16:15:411Bus
12824022015-04-12 14:21:441Metro
12927512015-04-12 15:59:241Walk
13027612015-04-12 15:59:261Walk
13127712015-04-12 15:59:321Walk
13227842015-04-13 09:33:031Metro
13325512015-04-13 10:21:181Train
13428042015-04-13 10:59:491Taxi
13527942015-04-13 11:00:131Taxi
13621412015-04-14 10:20:561Other
13721512015-04-14 10:21:121Other
13828212015-04-14 11:27:511Metro
13926612015-04-15 12:49:191Walk
14028312015-04-15 13:47:121Taxi
14120222015-04-16 11:07:461Metro
14228442015-04-17 12:24:241Metro
14325322015-04-17 17:00:121Private Vehicle
14425222015-04-17 17:00:381Private Vehicle
14529042015-04-18 10:52:561Walk
14628942015-04-18 10:53:111Walk
14729332015-04-18 11:46:191Taxi
14829232015-04-18 11:46:491Taxi
14928522015-04-19 11:03:521Walk
15028622015-04-19 11:03:571Walk
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;