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 4,351–4,375 of 9,738

entry_scan, page 175 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4351454812017-09-06 15:15:251Walk
4352454512017-09-06 15:15:341Walk
4353454712017-09-06 15:15:411Walk
4354454612017-09-06 15:15:581Walk
4355455132017-09-06 15:36:400NULL
4356455032017-09-06 16:10:340NULL
4357436612017-09-07 13:12:051Bus
4358436512017-09-07 13:12:291Bus
4359455952017-09-07 16:20:321Metro
4360456052017-09-07 16:20:501Metro
4361456152017-09-07 16:20:551Metro
4362456242017-09-08 11:24:321Walk
4363439352017-09-08 12:24:151Walk
4364455312017-09-09 10:18:171Bus
4365453122017-09-10 11:06:531Walk
4366456312017-09-10 11:22:581Metro
4367456412017-09-10 11:23:281Metro
4368442012017-09-10 12:38:191Bus
4369441912017-09-10 12:39:001Bus
4370453842017-09-11 10:44:491Train
4371453942017-09-11 10:44:531Train
4372453742017-09-11 10:45:221Train
4373456852017-09-11 10:48:211Metro
4374456952017-09-11 10:48:411Metro
4375456752017-09-11 10:48:461Metro
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;