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 4,001–4,025 of 9,738

entry_scan, page 161 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4001364142017-07-02 09:59:111Bus
4002365342017-07-02 09:59:191Bus
4003364642017-07-02 09:59:291Bus
4004364542017-07-02 09:59:311Bus
4005365142017-07-02 09:59:471Bus
4006365742017-07-02 09:59:491Bus
4007364842017-07-02 09:59:581Bus
4008366542017-07-02 10:00:091Bus
4009366442017-07-02 10:00:251Bus
4010365542017-07-02 10:00:291Bus
4011364942017-07-02 10:00:391Bus
4012367942017-07-02 10:00:391Bus
4013365642017-07-02 10:00:531Bus
4014365842017-07-02 10:00:591Bus
4015366242017-07-02 10:01:291Bus
4016366342017-07-02 10:01:391Bus
4017367842017-07-02 10:01:431Bus
4018366142017-07-02 10:01:551Bus
4019367342017-07-02 10:02:111Bus
4020367442017-07-02 10:02:191Bus
4021367542017-07-02 10:02:271Bus
4022365942017-07-02 10:02:341Bus
4023367642017-07-02 10:03:071Bus
4024366642017-07-02 10:04:041Bus
4025366842017-07-02 10:04:191Bus
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;