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 7,201–7,225 of 9,738

entry_scan, page 289 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7201738432019-01-17 11:52:111Metro
7202745422019-01-19 09:11:061Private Vehicle
7203745622019-01-19 09:11:101Private Vehicle
7204745322019-01-19 09:11:321Private Vehicle
7205745522019-01-19 09:11:481Private Vehicle
7206745722019-01-19 10:46:591Metro
7207745912019-01-19 12:09:001Walk
7208745812019-01-19 12:09:131Walk
7209720512019-01-20 09:39:411Other
7210720612019-01-20 09:39:421Other
7211720712019-01-20 09:39:451Other
7212746812019-01-23 10:06:321Metro
7213746912019-01-23 10:07:141Metro
7214745222019-01-24 14:42:531Walk
7215747022019-01-24 15:04:231Metro
7216747122019-01-24 15:04:341Metro
7217746742019-01-25 16:48:371Metro
7218746642019-01-25 16:48:461Metro
7219747222019-01-27 12:13:161Bus
7220744742019-01-28 10:49:211Metro
7221744642019-01-28 10:50:051Metro
7222747312019-01-29 09:58:481Metro
7223745022019-01-30 09:09:101Metro
7224744922019-01-30 09:09:191Metro
7225752612019-01-30 11:59:431Walk
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;