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

entry_scan, page 85 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2101216042016-05-29 12:00:381Bus
2102216242016-05-29 12:00:391Bus
2103216942016-05-29 12:00:561Bus
2104215542016-05-29 12:00:591Bus
2105215742016-05-29 12:01:001Bus
2106215842016-05-29 12:01:111Bus
2107217242016-05-29 12:01:111Bus
2108216342016-05-29 12:01:131Bus
2109217642016-05-29 12:01:261Bus
2110216842016-05-29 12:01:451Bus
2111219242016-05-29 12:01:531Bus
2112217442016-05-29 12:02:021Bus
2113216142016-05-29 12:02:211Bus
2114218742016-05-29 12:02:391Bus
2115217042016-05-29 12:02:411Bus
2116217542016-05-29 12:02:571Bus
2117216742016-05-29 12:03:021Bus
2118216442016-05-29 12:03:061Bus
2119216642016-05-29 12:03:211Bus
2120218442016-05-29 12:03:291Bus
2121217142016-05-29 12:04:151Bus
2122218842016-05-29 12:04:271Bus
2123219442016-05-29 12:04:331Bus
2124218242016-05-29 12:04:401Bus
2125217842016-05-29 12:05:251Bus
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;