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,201–3,225 of 9,738

entry_scan, page 129 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3201350032017-02-12 09:16:301Walk
3202350132017-02-12 09:16:481Walk
3203350232017-02-12 09:17:071Walk
3204353112017-02-12 11:58:541Metro
3205349252017-02-14 12:42:231Bus
3206351012017-02-14 14:33:311Walk
3207350812017-02-14 14:33:361Walk
3208350912017-02-14 14:33:471Walk
3209353222017-02-15 16:54:061Walk
3210349432017-02-18 11:33:501Metro
3211353012017-02-19 09:01:441Train
3212352912017-02-19 09:01:551Train
3213354012017-02-19 12:22:281Walk
3214354212017-02-19 12:22:401Walk
3215353912017-02-19 12:22:501Walk
3216354112017-02-19 12:22:561Walk
3217353422017-02-19 14:21:541Bus
3218353322017-02-19 14:21:551Bus
3219354532017-02-20 10:01:201Bus
3220354632017-02-20 10:01:291Bus
3221353652017-02-20 11:36:341Walk
3222354412017-02-20 13:39:251Metro
3223354312017-02-20 13:39:321Metro
3224355052017-02-22 14:42:361Walk
3225354852017-02-22 14:43:011Walk
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;