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 6,101–6,125 of 9,738

entry_scan, page 245 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6101642822018-08-09 11:31:481Walk
6102642922018-08-09 11:31:481Walk
6103642722018-08-09 11:32:191Walk
6104642622018-08-09 11:32:211Walk
6105634512018-08-09 11:38:141Other
6106643212018-08-09 13:42:041Metro
6107643012018-08-09 13:42:201Metro
6108643112018-08-09 13:42:221Metro
6109643312018-08-09 13:42:371Metro
6110559012018-08-10 11:01:111Walk
6111559212018-08-10 11:01:191Walk
6112559112018-08-10 11:01:201Walk
6113559312018-08-10 11:01:291Walk
6114560412018-08-10 11:01:511Walk
6115559612018-08-10 11:01:561Walk
6116559512018-08-10 11:02:071Walk
6117560812018-08-10 11:02:071Walk
6118560312018-08-10 11:02:231Walk
6119559812018-08-10 11:02:351Walk
6120560212018-08-10 11:02:471Walk
6121560012018-08-10 11:02:561Walk
6122561312018-08-10 11:02:591Walk
6123560612018-08-10 11:03:111Walk
6124560512018-08-10 11:03:231Walk
6125560912018-08-10 11:03:261Walk
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;