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

entry_scan, page 372 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9276951912019-12-07 11:19:571Bus
9277951352019-12-07 11:55:341Train
9278951252019-12-07 11:55:371Train
9279951452019-12-07 11:55:541Train
9280952322019-12-08 09:23:071Metro
9281952122019-12-08 09:23:361Metro
9282952222019-12-08 09:23:421Metro
9283940022019-12-08 09:42:521Walk
9284939922019-12-08 09:42:551Walk
9285951512019-12-08 10:34:371Walk
9286951612019-12-08 10:35:011Walk
9287952642019-12-08 13:01:531Taxi
9288947512019-12-08 13:58:511Walk
9289947412019-12-08 13:59:251Walk
9290952722019-12-08 15:49:141Taxi
9291953042019-12-10 10:45:101Walk
9292953142019-12-10 10:45:321Walk
9293953212019-12-10 12:24:481Metro
9294953442019-12-10 14:24:021Walk
9295953342019-12-10 14:24:181Walk
9296950512019-12-10 15:07:501Other
9297950412019-12-10 15:07:581Other
9298950212019-12-10 15:08:101Other
9299950312019-12-10 15:08:131Other
9300947632019-12-12 11:29:331Walk
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;