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,926–8,950 of 9,738

entry_scan, page 358 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8926924032019-10-19 10:40:241Walk
8927915812019-10-19 14:32:221Walk
8928915612019-10-19 14:32:231Walk
8929915712019-10-19 14:32:541Walk
8930915912019-10-19 14:32:541Walk
8931914412019-10-20 11:58:501Metro
8932929532019-10-22 11:40:181Walk
8933929922019-10-23 09:44:301Private Vehicle
8934929822019-10-23 09:44:541Private Vehicle
8935923222019-10-23 10:56:201Private Vehicle
8936923322019-10-23 10:56:301Private Vehicle
8937923122019-10-23 10:56:461Private Vehicle
8938923022019-10-23 10:56:551Private Vehicle
8939930212019-10-23 14:00:281Walk
8940915342019-10-24 13:20:321Metro
8941915242019-10-24 13:20:471Metro
8942917032019-10-24 14:06:291Bus
8943930522019-10-25 09:36:301Metro
8944930422019-10-25 09:36:511Metro
8945929312019-10-25 13:54:501Walk
8946929412019-10-25 13:55:161Walk
8947916352019-10-25 15:49:001Walk
8948902742019-10-26 09:19:461Metro
8949902942019-10-26 09:20:001Metro
8950903142019-10-26 09:20:041Metro
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;