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 2,651–2,675 of 9,738

entry_scan, page 107 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2651278142016-09-02 11:16:371Other
2652265412016-09-03 09:40:001Metro
2653265512016-09-03 09:40:271Metro
2654274312016-09-03 10:40:591Bus
2655274212016-09-03 10:41:031Bus
2656274412016-09-03 10:41:371Bus
2657278252016-09-04 12:22:481Walk
2658278642016-09-05 10:07:011Metro
2659273542016-09-05 11:46:431Metro
2660273442016-09-05 11:46:521Metro
2661279012016-09-07 11:12:111Bus
2662279112016-09-07 11:12:501Bus
2663279212016-09-07 11:12:571Bus
2664279322016-09-07 12:37:501Bus
2665279422016-09-07 12:38:111Bus
2666277012016-09-08 12:23:571Metro
2667277212016-09-08 12:24:001Metro
2668277112016-09-08 12:24:281Metro
2669277312016-09-08 12:24:341Metro
2670277912016-09-08 12:37:241Taxi
2671279952016-09-09 15:36:081Walk
2672280052016-09-09 15:36:251Walk
2673280152016-09-09 15:36:301Walk
2674279852016-09-09 15:36:411Walk
2675276042016-09-09 16:31:331Walk
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;