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,326–5,350 of 9,738

entry_scan, page 214 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5326553412018-04-09 15:23:511Metro
5327553812018-04-10 11:41:401Walk
5328553612018-04-10 11:42:111Walk
5329553712018-04-10 11:42:291Walk
5330551922018-04-10 12:54:141Metro
5331553922018-04-10 15:18:411Metro
5332551512018-04-10 15:31:201Metro
5333551612018-04-10 15:31:271Metro
5334551912018-04-10 16:45:150NULL
5335550232018-04-11 09:51:001Metro
5336550332018-04-11 09:51:051Metro
5337554312018-04-11 13:28:111Metro
5338554012018-04-11 13:28:161Metro
5339554212018-04-11 13:28:371Metro
5340554112018-04-11 13:28:461Metro
5341555312018-04-12 10:52:511Bus
5342555412018-04-12 10:53:001Bus
5343555212018-04-12 10:53:031Bus
5344555412018-04-12 12:45:500NULL
5345555312018-04-12 13:07:280NULL
5346555212018-04-12 13:46:320NULL
5347555522018-04-12 14:13:361Bus
5348555622018-04-12 14:14:121Bus
5349533712018-04-12 15:04:031Metro
5350533812018-04-12 15:04:281Metro
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;