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 226–250 of 9,738

entry_scan, page 10 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
22631322015-04-26 09:06:321Private Vehicle
22731222015-04-26 09:06:401Private Vehicle
22826112015-04-26 09:12:151Metro
22926012015-04-26 09:12:181Metro
23030722015-04-26 10:54:181Private Vehicle
23130622015-04-26 10:54:271Private Vehicle
23229122015-04-26 11:17:261Private Vehicle
23332722015-04-26 12:02:451Metro
23430322015-04-26 12:54:141Bus
23530422015-04-26 12:54:421Bus
23630222015-04-26 12:54:521Bus
23733112015-04-26 13:23:591Walk
23822822015-04-27 11:00:141Metro
23922722015-04-27 11:00:471Metro
24029642015-04-27 11:04:411Bus
24129742015-04-27 11:04:441Bus
24234222015-04-29 11:23:281Metro
24334122015-04-29 11:23:441Metro
24434812015-04-29 12:10:241Bus
24535512015-04-30 16:11:361Other
24635412015-04-30 16:12:051Other
24736012015-05-01 10:12:061Train
24835912015-05-01 10:12:231Train
24935812015-05-01 10:12:291Train
25042012015-05-01 11:29:531Other
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;