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,751–8,775 of 9,738

entry_scan, page 351 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8751895722019-09-11 10:40:191Metro
8752895822019-09-11 10:40:201Metro
8753895622019-09-11 10:40:351Metro
8754883412019-09-11 10:41:471Walk
8755886212019-09-11 11:58:501Walk
8756886012019-09-11 11:58:511Walk
8757886112019-09-11 11:59:041Walk
8758885912019-09-11 11:59:201Walk
8759886312019-09-11 11:59:201Walk
8760873022019-09-11 12:10:121Metro
8761872922019-09-11 12:10:421Metro
8762886212019-09-11 13:53:290NULL
8763886112019-09-11 14:02:250NULL
8764884552019-09-11 14:10:581Bus
8765885912019-09-11 14:11:230NULL
8766886312019-09-11 14:26:450NULL
8767886022019-09-11 15:28:590NULL
8768900912019-09-12 09:19:571Metro
8769901012019-09-12 09:20:011Metro
8770894912019-09-12 10:12:381Walk
8771895512019-09-13 11:22:431Walk
8772895312019-09-13 11:22:511Walk
8773895412019-09-13 11:22:561Walk
8774895012019-09-14 09:10:081Metro
8775901222019-09-14 11:52:351Metro
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;