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 5,776–5,800 of 9,738

entry_scan, page 232 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5776588752018-06-24 09:42:131Walk
5777589052018-06-24 09:42:311Walk
5778588852018-06-24 09:42:361Walk
5779608022018-06-24 10:23:031Metro
5780607822018-06-24 10:23:051Metro
5781607922018-06-24 10:23:291Metro
5782604512018-06-26 10:39:171Private Vehicle
5783582512018-06-27 09:51:261Metro
5784582612018-06-27 09:51:531Metro
5785582712018-06-27 09:52:021Metro
5786582812018-06-27 09:52:071Metro
5787608122018-06-28 12:45:231Bus
5788610122018-06-29 09:03:241Walk
5789610322018-06-29 09:03:361Walk
5790610222018-06-29 09:04:011Walk
5791610412018-06-29 10:01:431Metro
5792610512018-06-29 10:01:501Metro
5793609822018-06-29 10:41:391Walk
5794609722018-06-29 10:42:081Walk
5795610712018-06-29 11:55:251Walk
5796610612018-06-29 11:55:291Walk
5797611412018-06-30 09:57:091Taxi
5798611512018-06-30 09:57:231Taxi
5799611812018-06-30 11:09:181Walk
5800611712018-06-30 11:09:321Walk
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;