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 9,051–9,075 of 9,738

entry_scan, page 363 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9051890712019-11-05 09:59:071Bus
9052890412019-11-05 09:59:131Bus
9053890912019-11-05 09:59:211Bus
9054890812019-11-05 09:59:261Bus
9055890612019-11-05 09:59:331Bus
9056891712019-11-05 09:59:351Bus
9057891512019-11-05 09:59:411Bus
9058891412019-11-05 10:00:031Bus
9059891912019-11-05 10:00:091Bus
9060891212019-11-05 10:00:221Bus
9061893012019-11-05 10:00:231Bus
9062892712019-11-05 10:00:311Bus
9063891312019-11-05 10:00:351Bus
9064892212019-11-05 10:00:361Bus
9065892012019-11-05 10:00:431Bus
9066892312019-11-05 10:00:431Bus
9067894112019-11-05 10:00:511Bus
9068892612019-11-05 10:01:041Bus
9069891812019-11-05 10:01:271Bus
9070893512019-11-05 10:01:271Bus
9071893112019-11-05 10:01:391Bus
9072893712019-11-05 10:01:391Bus
9073892912019-11-05 10:01:471Bus
9074892512019-11-05 10:02:091Bus
9075893212019-11-05 10:02: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;