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 6,376–6,400 of 9,738

entry_scan, page 256 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6376638842018-08-31 09:47:171Walk
6377636942018-08-31 09:47:371Walk
6378637042018-08-31 09:48:021Walk
6379637342018-08-31 09:48:251Walk
6380637142018-08-31 09:48:431Walk
6381638742018-08-31 09:48:431Walk
6382637242018-08-31 09:48:581Walk
6383637442018-08-31 09:49:111Walk
6384637942018-08-31 09:49:151Walk
6385637642018-08-31 09:49:201Walk
6386638642018-08-31 09:49:341Walk
6387638142018-08-31 09:50:011Walk
6388638042018-08-31 09:50:121Walk
6389637742018-08-31 09:50:131Walk
6390638542018-08-31 09:50:211Walk
6391638342018-08-31 09:50:251Walk
6392638242018-08-31 09:51:031Walk
6393638942018-08-31 09:52:411Walk
6394659512018-08-31 11:43:440NULL
6395659612018-08-31 12:01:260NULL
6396657722018-08-31 12:08:331Bus
6397657922018-08-31 12:08:341Bus
6398657822018-08-31 12:08:391Bus
6399657622018-08-31 12:09:091Bus
6400659312018-08-31 12:28:360NULL
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;