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

entry_scan, page 379 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9451959832019-12-24 14:31:081Walk
9452957712019-12-24 15:18:221Metro
9453957612019-12-24 15:18:321Metro
9454956222019-12-24 15:40:111Metro
9455956122019-12-24 15:40:171Metro
9456956322019-12-24 15:40:321Metro
9457956022019-12-24 15:40:401Metro
9458944242019-12-25 11:42:281Walk
9459943942019-12-25 11:42:511Walk
9460944142019-12-25 11:43:001Walk
9461944042019-12-25 11:43:061Walk
9462958612019-12-25 15:26:241Bus
9463958312019-12-25 15:26:281Bus
9464958412019-12-25 15:26:511Bus
9465958512019-12-25 15:27:041Bus
9466958712019-12-25 15:27:101Bus
9467960012019-12-25 15:57:561Metro
9468959912019-12-25 15:58:081Metro
9469941822019-12-26 12:29:011Metro
9470941722019-12-26 12:29:081Metro
9471960612019-12-27 09:29:061Walk
9472960512019-12-27 09:29:221Walk
9473960732019-12-27 11:05:341Taxi
9474960832019-12-27 11:05:391Taxi
9475937742019-12-27 14:46:041Walk
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;