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,426–1,450 of 9,738

entry_scan, page 58 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1426141512015-12-07 12:10:061Bus
1427139812015-12-07 12:10:241Bus
1428139312015-12-07 12:10:261Bus
1429139712015-12-07 12:10:591Bus
1430140212015-12-07 12:11:081Bus
1431140912015-12-07 12:11:151Bus
1432140612015-12-07 12:11:201Bus
1433140812015-12-07 12:11:401Bus
1434141012015-12-07 12:12:361Bus
1435141212015-12-07 12:13:361Bus
1436141312015-12-07 12:15:451Bus
1437141412015-12-07 12:16:001Bus
1438156632015-12-07 12:26:501Metro
1439156712015-12-08 10:25:371Metro
1440120442015-12-08 12:18:151Metro
1441120542015-12-08 12:18:191Metro
1442120842015-12-08 12:18:351Metro
1443120642015-12-08 12:18:451Metro
1444120742015-12-08 12:18:541Metro
1445120942015-12-08 12:19:051Metro
1446121142015-12-08 12:19:181Metro
1447121242015-12-08 12:19:191Metro
1448122842015-12-08 12:19:231Metro
1449121042015-12-08 12:19:271Metro
1450123542015-12-08 12:19:431Metro
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;