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

entry_scan, page 56 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1376155842015-12-06 09:59:131Walk
1377155642015-12-06 09:59:271Walk
1378155932015-12-06 10:23:471Walk
1379155642015-12-06 11:32:230NULL
1380145512015-12-06 11:50:001Walk
1381145412015-12-06 11:50:361Walk
1382153832015-12-06 11:51:561Walk
1383153632015-12-06 11:52:111Walk
1384153732015-12-06 11:52:161Walk
1385153532015-12-06 11:52:361Walk
1386153932015-12-06 11:52:381Walk
1387155732015-12-06 12:57:500NULL
1388155842015-12-06 13:10:270NULL
1389155532015-12-06 13:17:070NULL
1390156052015-12-06 14:29:201Taxi
1391156152015-12-06 14:29:231Taxi
1392156412015-12-06 15:00:141Bus
1393156312015-12-06 15:00:191Bus
1394156512015-12-06 15:00:241Bus
1395156212015-12-06 15:00:301Bus
1396137412015-12-07 12:06:001Bus
1397137512015-12-07 12:06:071Bus
1398137612015-12-07 12:06:181Bus
1399137912015-12-07 12:06:201Bus
1400137812015-12-07 12:06:281Bus
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;