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 476–500 of 9,738

entry_scan, page 20 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
47667012015-06-14 14:53:441Metro
47767112015-06-14 14:53:511Metro
47866912015-06-14 14:54:151Metro
47966812015-06-14 14:54:171Metro
48066712015-06-14 14:54:181Metro
48166712015-06-14 16:35:080NULL
48267112015-06-14 16:58:060NULL
48366812015-06-14 17:29:490NULL
48468012015-06-15 10:20:081Walk
48567912015-06-15 10:20:271Walk
48668012015-06-15 12:44:570NULL
48767912015-06-15 14:13:170NULL
48865612015-06-16 11:15:431Walk
48968422015-06-16 15:24:511Walk
49068522015-06-16 15:25:011Walk
49159822015-06-16 16:48:391Walk
49268712015-06-17 13:38:331Taxi
49368612015-06-17 13:39:081Taxi
49469112015-06-18 13:06:231Walk
49568812015-06-18 13:06:361Walk
49668912015-06-18 13:06:581Walk
49769012015-06-18 13:07:011Walk
49869212015-06-19 10:46:461Walk
49969442015-06-19 11:00:351Walk
50069342015-06-19 11:01:221Walk
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;