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,401–2,425 of 9,738

entry_scan, page 97 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2401249512016-07-15 10:01:061Walk
2402249612016-07-15 10:01:151Walk
2403249412016-07-15 10:11:081Metro
2404249312016-07-15 10:11:241Metro
2405245512016-07-15 10:14:121Bus
2406245612016-07-15 10:14:221Bus
2407245412016-07-15 10:14:291Bus
2408244712016-07-15 10:40:511Metro
2409248112016-07-15 14:48:251Taxi
2410248012016-07-15 14:48:271Taxi
2411249922016-07-16 09:13:421Bus
2412249822016-07-16 09:14:011Bus
2413250022016-07-16 09:14:031Bus
2414249722016-07-16 09:14:061Bus
2415250122016-07-16 09:14:081Bus
2416249242016-07-16 10:17:141Walk
2417249042016-07-16 10:17:441Walk
2418250622016-07-16 14:07:111Metro
2419250822016-07-16 14:07:171Metro
2420250422016-07-16 14:07:211Metro
2421250522016-07-16 14:07:241Metro
2422250722016-07-16 14:07:461Metro
2423250242016-07-16 14:30:121Walk
2424250342016-07-16 14:30:361Walk
2425248212016-07-17 10:00:151Walk
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;