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

entry_scan, page 138 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3426329042017-03-15 11:25:091Walk
3427330042017-03-15 11:25:321Walk
3428327742017-03-15 11:25:381Walk
3429329142017-03-15 11:25:541Walk
3430328842017-03-15 11:26:051Walk
3431329942017-03-15 11:26:121Walk
3432327542017-03-15 11:26:201Walk
3433328742017-03-15 11:26:301Walk
3434327842017-03-15 11:26:401Walk
3435329242017-03-15 11:26:411Walk
3436328342017-03-15 11:26:501Walk
3437329842017-03-15 11:26:501Walk
3438328642017-03-15 11:26:531Walk
3439329342017-03-15 11:27:301Walk
3440328942017-03-15 11:29:141Walk
3441329742017-03-15 11:29:381Walk
3442329442017-03-15 11:31:051Walk
3443330142017-03-15 11:32:501Walk
3444357932017-03-15 14:42:381Bus
3445358032017-03-15 14:42:381Bus
3446357632017-03-15 14:42:391Bus
3447357832017-03-15 14:42:401Bus
3448357732017-03-15 14:42:431Bus
3449342442017-03-16 13:52:161Walk
3450361652017-03-16 14:29:271Walk
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;