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 2,151–2,175 of 9,738

entry_scan, page 87 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2151231632016-06-01 14:17:121Metro
2152231822016-06-02 09:24:131Walk
2153231922016-06-02 11:04:331Train
2154226522016-06-03 09:31:301Private Vehicle
2155226622016-06-03 09:31:391Private Vehicle
2156232712016-06-03 10:57:101Walk
2157228242016-06-04 10:19:061Metro
2158229112016-06-04 11:13:481Walk
2159229012016-06-04 11:14:181Walk
2160233412016-06-04 12:38:401Metro
2161233512016-06-04 12:39:161Metro
2162230732016-06-04 12:41:411Metro
2163230832016-06-04 12:42:071Metro
2164230122016-06-05 14:32:071Metro
2165230022016-06-05 14:32:311Metro
2166234142016-06-06 11:13:081Walk
2167234042016-06-06 11:13:261Walk
2168232832016-06-06 11:37:151Walk
2169232932016-06-06 11:37:171Walk
2170234222016-06-06 12:55:071Private Vehicle
2171234322016-06-06 12:55:141Private Vehicle
2172234112016-06-06 14:10:360NULL
2173234022016-06-06 14:19:170NULL
2174229552016-06-07 09:54:181Metro
2175232012016-06-07 14:03:091Walk
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;