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,851–8,875 of 9,738

entry_scan, page 355 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8851885012019-10-07 10:19:031Other
8852915052019-10-08 11:07:571Walk
8853914952019-10-08 11:07:591Walk
8854915152019-10-08 11:08:021Walk
8855914752019-10-08 11:08:271Walk
8856914852019-10-08 11:08:361Walk
8857916222019-10-09 09:41:511Metro
8858916222019-10-09 12:03:370NULL
8859916632019-10-11 10:35:541Bus
8860916732019-10-11 10:36:031Bus
8861912732019-10-11 14:27:491Walk
8862912632019-10-11 14:27:561Walk
8863916412019-10-12 11:59:491Taxi
8864916512019-10-12 12:00:071Taxi
8865916012019-10-13 10:40:541Walk
8866916112019-10-13 10:41:151Walk
8867913732019-10-13 14:59:081Bus
8868913632019-10-13 14:59:171Bus
8869913532019-10-13 14:59:231Bus
8870911432019-10-14 10:36:171Metro
8871911332019-10-14 10:36:251Metro
8872917122019-10-14 11:25:511Taxi
8873914542019-10-14 13:39:071Walk
8874914642019-10-14 13:39:321Walk
8875917442019-10-14 14:14:591Taxi
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;