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,301–5,325 of 9,738

entry_scan, page 213 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5301535112018-04-04 09:06:431Metro
5302551852018-04-04 09:09:091Metro
5303551752018-04-04 09:09:171Metro
5304535012018-04-04 12:01:410NULL
5305535112018-04-04 12:13:550NULL
5306552052018-04-05 11:30:321Train
5307551412018-04-05 11:45:421Walk
5308551312018-04-05 11:46:021Walk
5309546522018-04-06 10:43:221Metro
5310546422018-04-06 10:43:511Metro
5311550922018-04-06 10:48:181Walk
5312551022018-04-06 10:48:291Walk
5313547212018-04-07 09:13:591Walk
5314547312018-04-07 09:14:081Walk
5315552422018-04-07 11:43:431Metro
5316548522018-04-07 15:04:421Walk
5317548422018-04-07 15:05:051Walk
5318552612018-04-08 10:14:321Metro
5319552512018-04-08 10:14:391Metro
5320545052018-04-08 11:53:411Walk
5321550742018-04-09 09:04:001Other
5322550842018-04-09 09:04:181Other
5323550642018-04-09 09:04:311Other
5324553312018-04-09 15:23:251Metro
5325553512018-04-09 15:23:501Metro
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;