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,851–5,875 of 9,738

entry_scan, page 235 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5851619822018-07-10 12:16:331Walk
5852619722018-07-10 12:16:391Walk
5853606432018-07-11 09:44:221Walk
5854606532018-07-11 09:44:491Walk
5855620242018-07-11 10:44:151Walk
5856610922018-07-11 11:32:011Bus
5857610822018-07-11 11:32:041Bus
5858616812018-07-12 10:24:491Metro
5859616912018-07-12 10:25:231Metro
5860620712018-07-12 10:29:131Metro
5861620912018-07-12 11:36:431Walk
5862621112018-07-12 11:36:431Walk
5863621212018-07-12 11:37:031Walk
5864620812018-07-12 11:37:121Walk
5865621012018-07-12 11:37:241Walk
5866620912018-07-12 13:33:170NULL
5867616952018-07-12 13:55:360NULL
5868616812018-07-12 13:58:240NULL
5869621212018-07-12 14:15:150NULL
5870620812018-07-12 14:55:450NULL
5871621112018-07-12 15:19:570NULL
5872621012018-07-12 15:27:440NULL
5873619312018-07-14 10:32:311Taxi
5874622212018-07-14 10:44:011Walk
5875622112018-07-14 10:44:161Walk
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;