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 8,601–8,625 of 9,738

entry_scan, page 345 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8601876912019-08-15 13:16:441Taxi
8602875542019-08-15 14:17:221Walk
8603875442019-08-15 14:17:251Walk
8604875642019-08-15 14:17:541Walk
8605870112019-08-16 11:25:291Metro
8606869912019-08-16 11:25:491Metro
8607870012019-08-16 11:26:051Metro
8608869812019-08-16 11:26:141Metro
8609869032019-08-16 14:18:221Bus
8610868732019-08-16 14:18:321Bus
8611868832019-08-16 14:18:341Bus
8612868932019-08-16 14:18:341Bus
8613873112019-08-17 09:41:511Walk
8614873212019-08-17 09:42:281Walk
8615877112019-08-18 10:36:121Private Vehicle
8616877012019-08-18 10:36:251Private Vehicle
8617877212019-08-18 10:36:261Private Vehicle
8618877312019-08-18 10:36:551Private Vehicle
8619878022019-08-18 11:24:491Bus
8620877912019-08-18 14:02:321Private Vehicle
8621878322019-08-19 10:43:591Other
8622878522019-08-19 13:07:001Metro
8623878422019-08-19 13:07:231Metro
8624857422019-08-21 09:33:441Metro
8625857522019-08-21 09:33:541Metro
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;