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,376–2,400 of 9,738

entry_scan, page 96 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2376244852016-07-10 13:24:021Walk
2377246312016-07-11 10:49:481Walk
2378246412016-07-11 10:50:051Walk
2379246922016-07-11 11:14:181Walk
2380247022016-07-11 11:14:241Walk
2381246712016-07-11 11:18:101Walk
2382246512016-07-11 11:18:201Walk
2383246612016-07-11 11:18:451Walk
2384246812016-07-11 11:18:491Walk
2385247252016-07-11 14:20:591Bus
2386247152016-07-11 14:21:051Bus
2387242422016-07-12 09:03:071Walk
2388247412016-07-12 11:56:501Walk
2389247512016-07-12 11:56:591Walk
2390242722016-07-12 12:08:011Private Vehicle
2391242822016-07-12 12:08:011Private Vehicle
2392242522016-07-12 12:08:041Private Vehicle
2393242622016-07-12 12:08:331Private Vehicle
2394247342016-07-12 13:49:041Bus
2395248512016-07-14 10:15:141Metro
2396248412016-07-14 10:15:411Metro
2397248732016-07-14 16:11:161Metro
2398248632016-07-14 16:11:201Metro
2399248832016-07-14 16:11:261Metro
2400248912016-07-15 09:44:421Other
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;