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 5,801–5,825 of 9,738

entry_scan, page 233 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5801611912018-06-30 11:09:441Walk
5802611612018-06-30 11:09:551Walk
5803608542018-06-30 16:50:591Other
5804608442018-06-30 16:51:001Other
5805608642018-06-30 16:51:101Other
5806608742018-06-30 16:51:101Other
5807608342018-06-30 16:51:181Other
5808608242018-07-01 10:19:291Train
5809616712018-07-01 10:54:461Walk
5810616612018-07-01 10:55:131Walk
5811607332018-07-01 12:15:221Walk
5812607432018-07-01 12:15:221Walk
5813609922018-07-02 13:32:111Metro
5814617022018-07-02 16:47:591Metro
5815617342018-07-03 14:32:391Metro
5816617242018-07-03 14:33:051Metro
5817611322018-07-04 15:39:031Metro
5818611222018-07-04 15:39:041Metro
5819611112018-07-05 10:18:291Metro
5820617812018-07-05 11:14:321Metro
5821617912018-07-05 11:14:381Metro
5822617712018-07-05 11:14:541Metro
5823618122018-07-05 12:02:151Metro
5824618022018-07-05 12:02:311Metro
5825606912018-07-05 12:25:111Other
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;