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,551–5,575 of 9,738

entry_scan, page 223 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5551542142018-05-07 12:00:071Bus
5552540442018-05-07 12:00:161Bus
5553540942018-05-07 12:00:271Bus
5554541742018-05-07 12:01:311Bus
5555541042018-05-07 12:01:461Bus
5556541642018-05-07 12:01:581Bus
5557542642018-05-07 12:02:301Bus
5558542042018-05-07 12:04:161Bus
5559542542018-05-07 12:04:431Bus
5560566942018-05-07 15:13:511Walk
5561570412018-05-08 11:16:031Metro
5562570622018-05-09 13:48:511Metro
5563558212018-05-10 09:00:391Walk
5564568422018-05-11 10:03:521Metro
5565568322018-05-11 10:04:151Metro
5566567422018-05-11 13:39:281Other
5567567522018-05-11 13:39:481Other
5568567522018-05-11 15:55:480NULL
5569570112018-05-11 15:56:541Metro
5570567442018-05-11 16:40:480NULL
5571574842018-05-12 11:52:411Walk
5572574942018-05-12 11:52:441Walk
5573575712018-05-12 15:50:351Metro
5574575612018-05-12 15:51:041Metro
5575574012018-05-13 09:29:011Metro
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;