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,376–5,400 of 9,738

entry_scan, page 216 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5376554512018-04-18 16:38:111Walk
5377554612018-04-18 16:38:411Walk
5378554812018-04-18 16:38:431Walk
5379554712018-04-18 16:38:491Walk
5380546032018-04-19 09:59:371Metro
5381545732018-04-19 10:00:021Metro
5382545932018-04-19 10:00:081Metro
5383545832018-04-19 10:00:101Metro
5384557312018-04-19 13:02:431Bus
5385558912018-04-20 09:30:031Walk
5386558812018-04-20 09:30:271Walk
5387537012018-04-21 14:51:411Private Vehicle
5388536912018-04-21 14:52:011Private Vehicle
5389563312018-04-21 15:04:151Train
5390563212018-04-21 15:04:381Train
5391556142018-04-22 09:30:201Walk
5392563512018-04-22 10:02:471Metro
5393563412018-04-22 10:03:021Metro
5394557112018-04-22 11:23:461Train
5395557012018-04-22 11:23:521Train
5396563822018-04-22 11:35:181Train
5397563922018-04-22 11:35:221Train
5398558422018-04-23 10:55:181Metro
5399558742018-04-23 15:30:191Metro
5400563752018-04-25 11:10:161Walk
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;