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,051–5,075 of 9,738

entry_scan, page 203 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5051524642018-02-04 10:58:031Bus
5052524152018-02-05 10:34:111Taxi
5053524932018-02-06 09:51:141Bus
5054524832018-02-06 09:51:151Bus
5055524752018-02-07 11:07:511Walk
5056525612018-02-08 09:21:361Walk
5057525512018-02-08 09:22:031Walk
5058521642018-02-08 11:07:081Other
5059521232018-02-08 12:40:401Walk
5060521332018-02-08 12:41:021Walk
5061525822018-02-08 13:38:321Metro
5062525722018-02-08 13:38:521Metro
5063525322018-02-09 11:58:151Bus
5064525422018-02-09 11:58:171Bus
5065525212018-02-09 13:16:311Metro
5066526732018-02-11 12:56:301Bus
5067496012018-02-11 14:24:111Walk
5068495912018-02-11 14:24:211Walk
5069495812018-02-11 14:24:231Walk
5070495612018-02-11 14:24:241Walk
5071495712018-02-11 14:24:261Walk
5072522252018-02-13 10:15:381Walk
5073522352018-02-13 10:15:511Walk
5074522552018-02-13 10:15:541Walk
5075522452018-02-13 10:15:551Walk
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;