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,651–5,675 of 9,738

entry_scan, page 227 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5651581832018-05-25 15:01:111Other
5652582012018-05-26 10:55:381Taxi
5653581912018-05-26 10:55:531Taxi
5654568642018-05-26 11:10:501Taxi
5655582122018-05-26 11:54:021Metro
5656582312018-05-27 11:12:311Other
5657582412018-05-27 11:12:381Other
5658583042018-05-28 10:19:061Other
5659582942018-05-28 10:19:131Other
5660552122018-05-28 11:41:271Private Vehicle
5661583132018-05-28 12:09:371Metro
5662586832018-05-30 09:34:231Train
5663586932018-05-30 09:34:461Train
5664579812018-05-30 11:07:261Metro
5665579712018-05-30 11:07:361Metro
5666587142018-05-30 11:44:541Walk
5667587042018-05-30 11:44:551Walk
5668587252018-05-31 09:52:361Walk
5669573922018-05-31 10:00:411Walk
5670573822018-05-31 10:00:491Walk
5671587512018-05-31 11:03:461Metro
5672587622018-05-31 12:28:381Walk
5673587722018-05-31 12:29:271Walk
5674587422018-05-31 16:59:361Walk
5675587322018-05-31 16:59:531Walk
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;