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,351–2,375 of 9,738

entry_scan, page 95 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2351194912016-07-01 13:55:561Bus
2352243612016-07-01 14:07:101Metro
2353243712016-07-01 14:07:251Metro
2354243812016-07-01 14:07:351Metro
2355239722016-07-01 14:35:460NULL
2356244012016-07-01 15:08:351Metro
2357243912016-07-01 15:08:471Metro
2358240312016-07-02 10:03:201Bus
2359240212016-07-02 10:03:301Bus
2360240112016-07-02 10:03:461Bus
2361240412016-07-02 10:03:481Bus
2362244142016-07-02 10:24:141Private Vehicle
2363244242016-07-02 10:24:271Private Vehicle
2364244352016-07-02 10:45:101Bus
2365244452016-07-02 10:45:131Bus
2366244612016-07-03 15:18:581Walk
2367245212016-07-06 10:20:121Bus
2368245112016-07-06 15:29:231Walk
2369239612016-07-07 10:25:271Walk
2370244922016-07-07 11:30:501Metro
2371242232016-07-08 09:02:431Metro
2372242032016-07-08 09:02:551Metro
2373242132016-07-08 09:03:001Metro
2374245912016-07-09 09:01:041Walk
2375245812016-07-09 09:01:081Walk
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;