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,001–5,025 of 9,738

entry_scan, page 201 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5001502112018-01-19 13:11:091Metro
5002502612018-01-19 13:11:511Metro
5003502412018-01-19 13:11:541Metro
5004502912018-01-19 13:11:571Metro
5005503112018-01-19 13:12:231Metro
5006513512018-01-20 10:50:321Walk
5007513412018-01-20 10:50:571Walk
5008520712018-01-20 11:16:091Walk
5009520612018-01-20 11:16:221Walk
5010520512018-01-20 11:16:281Walk
5011520512018-01-20 12:55:140NULL
5012520612018-01-20 13:47:030NULL
5013520712018-01-20 14:57:170NULL
5014513212018-01-20 15:25:381Taxi
5015513312018-01-20 15:25:551Taxi
5016512742018-01-21 10:22:361Taxi
5017512842018-01-21 10:23:241Taxi
5018521422018-01-22 09:30:561Metro
5019521522018-01-22 09:31:211Metro
5020506322018-01-22 11:14:181Metro
5021506222018-01-22 11:14:471Metro
5022506122018-01-22 11:14:561Metro
5023506422018-01-22 11:15:011Metro
5024520812018-01-22 12:38:401Taxi
5025521012018-01-22 12:38:471Taxi
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;