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 7,176–7,200 of 9,738

entry_scan, page 288 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7176726412019-01-05 16:28:071Walk
7177737222019-01-06 10:11:071Bus
7178737122019-01-06 10:11:151Bus
7179737712019-01-06 12:44:431Metro
7180737842019-01-06 14:07:181Walk
7181737412019-01-08 15:21:391Metro
7182737612019-01-08 15:21:411Metro
7183737512019-01-08 15:21:501Metro
7184737312019-01-08 15:22:231Metro
7185738122019-01-09 10:07:261Walk
7186738022019-01-09 10:07:411Walk
7187735322019-01-09 12:56:501Metro
7188735522019-01-09 12:56:561Metro
7189735422019-01-09 12:57:111Metro
7190735222019-01-09 12:57:221Metro
7191737912019-01-10 11:01:001Walk
7192738242019-01-12 10:02:261Private Vehicle
7193738532019-01-12 10:32:051Other
7194738642019-01-12 10:54:371Metro
7195738742019-01-12 10:54:481Metro
7196725412019-01-12 10:59:181Bus
7197725512019-01-12 10:59:481Bus
7198744532019-01-14 13:46:131Walk
7199744432019-01-14 13:46:271Walk
7200738332019-01-17 11:52:071Metro
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;