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,151–4,175 of 9,738

entry_scan, page 167 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4151430212017-07-30 10:24:411Walk
4152430112017-07-30 10:24:531Walk
4153431612017-07-30 12:06:171Bus
4154431952017-07-31 09:16:571Walk
4155432052017-07-31 09:17:081Walk
4156432342017-07-31 11:20:161Walk
4157431712017-07-31 13:59:571Walk
4158431812017-07-31 14:00:271Walk
4159432112017-08-01 16:13:111Train
4160432212017-08-01 16:13:301Train
4161433212017-08-02 15:52:241Metro
4162432812017-08-02 15:52:271Metro
4163433012017-08-02 15:52:441Metro
4164433112017-08-02 15:52:441Metro
4165432912017-08-02 15:52:491Metro
4166433312017-08-04 11:48:591Bus
4167433312017-08-04 14:01:220NULL
4168419222017-08-04 15:57:031Metro
4169432412017-08-05 10:17:081Walk
4170434912017-08-05 14:54:501Metro
4171434812017-08-05 14:55:031Metro
4172400422017-08-06 09:25:371Metro
4173435022017-08-06 10:25:061Metro
4174435222017-08-06 11:08:421Walk
4175435122017-08-06 11:08:471Walk
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;