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 9,426–9,450 of 9,738

entry_scan, page 378 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9426928742019-12-20 14:01:481Bus
9427927442019-12-20 14:01:501Bus
9428929042019-12-20 14:02:181Bus
9429928542019-12-20 14:03:401Bus
9430928942019-12-20 14:03:441Bus
9431928442019-12-20 14:04:531Bus
9432957012019-12-20 15:06:431Walk
9433956912019-12-20 15:07:041Walk
9434957812019-12-21 09:47:361Taxi
9435955712019-12-21 10:23:181Metro
9436955612019-12-21 10:23:281Metro
9437950812019-12-21 10:27:341Metro
9438950912019-12-21 10:27:491Metro
9439957912019-12-21 11:14:201Walk
9440955912019-12-21 15:41:051Walk
9441948842019-12-22 10:59:131Walk
9442948942019-12-22 10:59:141Walk
9443949042019-12-22 10:59:521Walk
9444958212019-12-23 12:53:371Walk
9445958012019-12-24 09:16:041Walk
9446959412019-12-24 10:41:281Metro
9447959312019-12-24 10:41:411Metro
9448959652019-12-24 13:50:471Walk
9449959552019-12-24 13:50:531Walk
9450959752019-12-24 13:51:031Walk
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;