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,276–3,300 of 9,738

entry_scan, page 132 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3276312342017-02-24 11:05:311Bus
3277313042017-02-24 11:05:451Bus
3278311842017-02-24 11:06:001Bus
3279312142017-02-24 11:06:331Bus
3280311342017-02-24 11:06:411Bus
3281312742017-02-24 11:07:391Bus
3282312442017-02-24 11:07:491Bus
3283313642017-02-24 11:09:181Bus
3284312242017-02-24 11:09:281Bus
3285312642017-02-24 11:09:431Bus
3286349912017-02-24 13:16:191Other
3287356012017-02-26 10:38:561Private Vehicle
3288352012017-02-26 13:06:231Bus
3289351812017-02-26 13:06:251Bus
3290351912017-02-26 13:06:381Bus
3291356912017-02-27 10:12:291Walk
3292356812017-02-27 10:12:331Walk
3293355332017-02-27 14:10:371Metro
3294355432017-02-27 14:10:371Metro
3295355532017-02-27 14:10:401Metro
3296357112017-02-28 09:44:431Train
3297357012017-02-28 09:44:511Train
3298355932017-02-28 11:50:071Walk
3299357212017-03-01 10:39:371Walk
3300357312017-03-01 10:39:591Walk
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;