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,026–9,050 of 9,738

entry_scan, page 362 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9026931522019-10-29 13:12:161Bus
9027931322019-10-29 13:12:191Bus
9028931622019-10-29 13:12:221Bus
9029930722019-10-29 13:17:591Metro
9030930822019-10-29 13:18:041Metro
9031933122019-10-29 15:00:001Walk
9032933422019-10-29 15:00:121Walk
9033933222019-10-29 15:00:141Walk
9034933322019-10-29 15:00:201Walk
9035933522019-10-29 16:52:251Metro
9036933622019-10-29 16:52:361Metro
9037933942019-11-02 09:41:031Walk
9038929212019-11-02 10:20:481Walk
9039934212019-11-02 11:16:011Metro
9040911112019-11-03 11:30:331Walk
9041910912019-11-03 11:30:431Walk
9042911012019-11-03 11:30:541Walk
9043911212019-11-03 11:31:081Walk
9044930312019-11-03 14:05:191Private Vehicle
9045935312019-11-04 11:36:431Metro
9046935612019-11-04 11:36:561Metro
9047935512019-11-04 11:37:101Metro
9048935412019-11-04 11:37:301Metro
9049890212019-11-05 09:58:511Bus
9050890312019-11-05 09:58:551Bus
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;