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 7,451–7,475 of 9,738

entry_scan, page 299 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7451775352019-03-05 11:25:201Walk
7452775252019-03-05 11:25:451Walk
7453777042019-03-05 11:29:561Metro
7454776942019-03-05 11:30:181Metro
7455776842019-03-05 11:30:281Metro
7456775252019-03-05 13:08:310NULL
7457775152019-03-05 14:25:320NULL
7458775312019-03-05 15:20:430NULL
7459777342019-03-06 09:48:421Bus
7460765932019-03-06 10:27:061Walk
7461763222019-03-06 11:09:351Walk
7462763222019-03-06 15:08:050NULL
7463772922019-03-06 16:15:301Metro
7464773022019-03-06 16:15:501Metro
7465775922019-03-07 09:14:221Metro
7466775722019-03-07 09:14:381Metro
7467776122019-03-07 09:14:461Metro
7468775822019-03-07 09:15:001Metro
7469776022019-03-07 09:15:061Metro
7470777422019-03-07 10:42:541Private Vehicle
7471773152019-03-08 09:08:001Walk
7472773252019-03-08 09:08:011Walk
7473773552019-03-08 09:08:021Walk
7474773452019-03-08 09:08:061Walk
7475773352019-03-08 09:08:271Walk
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;