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,476–3,500 of 9,738

entry_scan, page 140 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3476361222017-03-25 14:54:131Metro
3477363342017-03-25 15:19:481Other
3478363242017-03-25 15:20:071Other
3479368512017-03-27 10:08:361Metro
3480368612017-03-27 10:08:491Metro
3481369812017-03-28 10:58:531Metro
3482369712017-03-28 10:59:061Metro
3483370112017-03-28 10:59:071Metro
3484369912017-03-28 10:59:081Metro
3485370012017-03-28 10:59:111Metro
3486369422017-03-28 12:08:001Metro
3487368922017-03-29 10:57:571Private Vehicle
3488370242017-03-31 12:51:021Walk
3489370712017-03-31 13:16:141Metro
3490370412017-03-31 13:16:281Metro
3491370512017-03-31 13:16:281Metro
3492370312017-03-31 13:16:301Metro
3493370612017-03-31 13:16:361Metro
3494370242017-03-31 15:38:410NULL
3495371122017-03-31 16:09:341Metro
3496371322017-04-01 13:06:551Walk
3497371222017-04-01 13:06:571Walk
3498369512017-04-04 10:56:071Metro
3499369612017-04-04 10:56:081Metro
3500370932017-04-04 13:44:051Bus
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;