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 2,126–2,150 of 9,738

entry_scan, page 86 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2126218042016-05-29 12:05:251Bus
2127219142016-05-29 12:05:311Bus
2128218542016-05-29 12:05:451Bus
2129218942016-05-29 12:05:461Bus
2130218342016-05-29 12:05:511Bus
2131217942016-05-29 12:06:061Bus
2132219042016-05-29 12:07:091Bus
2133219742016-05-29 12:08:141Bus
2134219642016-05-29 12:08:411Bus
2135220312016-05-29 12:13:331Metro
2136220212016-05-29 12:14:121Metro
2137220412016-05-29 12:14:161Metro
2138230232016-05-29 12:51:241Metro
2139230332016-05-29 12:52:091Metro
2140228612016-05-29 14:43:191Walk
2141228512016-05-29 14:43:411Walk
2142230622016-05-29 15:49:461Walk
2143230522016-05-29 15:49:571Walk
2144230422016-05-29 15:50:131Walk
2145231212016-06-01 10:11:181Walk
2146231112016-06-01 10:11:301Walk
2147231432016-06-01 14:16:451Metro
2148231532016-06-01 14:16:591Metro
2149231332016-06-01 14:17:061Metro
2150231732016-06-01 14:17:081Metro
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;