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,876–8,900 of 9,738

entry_scan, page 356 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8876908832019-10-15 11:20:401Metro
8877917622019-10-15 12:01:021Metro
8878917232019-10-15 12:13:551Taxi
8879859912019-10-15 13:41:531Bus
8880860112019-10-15 13:41:571Bus
8881860212019-10-15 13:42:111Bus
8882860412019-10-15 13:42:141Bus
8883860712019-10-15 13:42:291Bus
8884861012019-10-15 13:42:291Bus
8885860812019-10-15 13:42:351Bus
8886860612019-10-15 13:42:381Bus
8887861612019-10-15 13:42:451Bus
8888860512019-10-15 13:42:491Bus
8889861412019-10-15 13:42:531Bus
8890861312019-10-15 13:43:101Bus
8891861712019-10-15 13:43:171Bus
8892860912019-10-15 13:43:291Bus
8893862712019-10-15 13:44:111Bus
8894862412019-10-15 13:44:131Bus
8895861212019-10-15 13:44:231Bus
8896862012019-10-15 13:44:491Bus
8897862512019-10-15 13:45:021Bus
8898862312019-10-15 13:45:031Bus
8899861812019-10-15 13:45:081Bus
8900862212019-10-15 13:45:111Bus
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;