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 8,351–8,375 of 9,738

entry_scan, page 335 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8351854712019-07-14 10:47:351Bus
8352854812019-07-14 10:47:421Bus
8353793242019-07-14 10:58:431Bus
8354793342019-07-14 10:58:521Bus
8355793542019-07-14 10:58:551Bus
8356793442019-07-14 10:58:571Bus
8357793642019-07-14 10:59:151Bus
8358793742019-07-14 10:59:231Bus
8359793842019-07-14 10:59:251Bus
8360794142019-07-14 10:59:281Bus
8361794342019-07-14 10:59:381Bus
8362794542019-07-14 10:59:481Bus
8363794942019-07-14 10:59:511Bus
8364794242019-07-14 11:00:031Bus
8365793942019-07-14 11:00:281Bus
8366794442019-07-14 11:00:311Bus
8367794042019-07-14 11:00:431Bus
8368796642019-07-14 11:00:591Bus
8369796742019-07-14 11:01:031Bus
8370795042019-07-14 11:01:071Bus
8371795742019-07-14 11:01:131Bus
8372795442019-07-14 11:01:171Bus
8373795842019-07-14 11:01:191Bus
8374795942019-07-14 11:01:251Bus
8375851742019-07-14 11:01:331Walk
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;