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 3,026–3,050 of 9,738

entry_scan, page 122 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3026323952016-12-19 13:30:271Walk
3027317612016-12-21 11:47:241Train
3028317412016-12-21 11:47:251Train
3029317512016-12-21 11:47:331Train
3030324312016-12-23 09:30:341Walk
3031324212016-12-23 09:31:111Walk
3032324412016-12-23 14:26:531Train
3033324712016-12-23 14:27:171Train
3034324612016-12-23 14:27:261Train
3035324512016-12-23 14:27:311Train
3036325252016-12-24 10:24:501Walk
3037325152016-12-24 10:24:521Walk
3038314912016-12-24 12:11:201Walk
3039330742016-12-25 12:27:121Walk
3040330442016-12-25 12:27:201Walk
3041330642016-12-25 12:27:411Walk
3042330542016-12-25 12:27:421Walk
3043330342016-12-25 12:27:501Walk
3044315212016-12-25 13:27:051Metro
3045315412016-12-25 13:27:411Metro
3046315312016-12-25 13:27:501Metro
3047315512016-12-25 13:27:511Metro
3048295342016-12-26 09:37:591Bus
3049295442016-12-26 09:38:111Bus
3050295542016-12-26 09:38:111Bus
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;