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 2,176–2,200 of 9,738

entry_scan, page 88 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2176232112016-06-07 14:03:371Walk
2177232312016-06-07 14:03:521Walk
2178232212016-06-07 14:03:531Walk
2179234442016-06-08 12:16:461Taxi
2180234542016-06-08 12:16:481Taxi
2181230912016-06-09 09:56:101Metro
2182231012016-06-09 09:56:221Metro
2183235132016-06-09 10:07:231Bus
2184235232016-06-09 10:07:371Bus
2185235342016-06-09 11:18:211Bus
2186235422016-06-09 11:47:361Metro
2187235522016-06-09 11:48:071Metro
2188235622016-06-09 11:48:071Metro
2189225952016-06-09 14:43:551Walk
2190226052016-06-09 14:44:161Walk
2191226152016-06-09 14:44:191Walk
2192235722016-06-10 11:06:151Metro
2193235822016-06-10 11:06:211Metro
2194235942016-06-10 12:43:041Walk
2195233912016-06-10 15:02:401Metro
2196236112016-06-10 16:36:591Other
2197236012016-06-10 16:37:051Other
2198236212016-06-10 16:37:341Other
2199232512016-06-11 13:12:131Walk
2200232412016-06-11 13:12:231Walk
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;