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 6,651–6,675 of 9,738

entry_scan, page 267 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6651688442018-10-19 15:18:191Walk
6652683952018-10-20 09:39:551Bus
6653674542018-10-20 12:18:391Walk
6654674442018-10-20 12:19:001Walk
6655683832018-10-21 12:47:461Train
6656683632018-10-21 12:47:571Train
6657683732018-10-21 12:48:151Train
6658690012018-10-21 15:08:131Private Vehicle
6659689932018-10-22 15:55:011Bus
6660689412018-10-23 12:23:101Metro
6661689512018-10-23 12:23:301Metro
6662612042018-10-25 09:58:371Bus
6663612142018-10-25 09:58:511Bus
6664612242018-10-25 09:58:511Bus
6665612342018-10-25 09:59:011Bus
6666612742018-10-25 09:59:051Bus
6667612442018-10-25 09:59:131Bus
6668612542018-10-25 09:59:471Bus
6669612842018-10-25 09:59:491Bus
6670612642018-10-25 09:59:551Bus
6671613642018-10-25 09:59:571Bus
6672612942018-10-25 10:00:071Bus
6673614442018-10-25 10:00:131Bus
6674613142018-10-25 10:00:161Bus
6675613042018-10-25 10:00:171Bus
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;