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,601–5,625 of 9,738

entry_scan, page 225 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5601579032018-05-17 11:10:521Metro
5602578832018-05-17 11:11:181Metro
5603579132018-05-17 11:11:191Metro
5604579222018-05-17 13:49:031Metro
5605576412018-05-18 10:23:131Other
5606576612018-05-18 10:23:191Other
5607576512018-05-18 10:23:351Other
5608576712018-05-18 10:23:371Other
5609575412018-05-18 12:33:211Taxi
5610575512018-05-18 12:33:541Taxi
5611580142018-05-19 10:41:041Bus
5612580142018-05-19 12:57:030NULL
5613580212018-05-19 15:04:401Walk
5614567822018-05-19 15:50:571Metro
5615568122018-05-19 15:51:041Metro
5616568222018-05-19 15:51:091Metro
5617567922018-05-19 15:51:151Metro
5618568022018-05-19 15:51:311Metro
5619565222018-05-20 14:26:031Walk
5620579342018-05-21 12:57:171Train
5621579442018-05-21 12:57:411Train
5622580842018-05-21 15:31:481Bus
5623580742018-05-21 15:32:301Bus
5624557422018-05-22 10:54:421Bus
5625557722018-05-22 10:54:581Bus
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;