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 6,976–7,000 of 9,738

entry_scan, page 280 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6976721822018-12-08 11:55:131Metro
6977721722018-12-08 11:55:441Metro
6978721412018-12-08 13:22:001Metro
6979708022018-12-08 16:26:371Metro
6980724912018-12-09 10:31:021Walk
6981724812018-12-09 10:31:191Walk
6982722552018-12-09 11:05:401Train
6983679012018-12-09 12:35:591Bus
6984679112018-12-09 12:36:121Bus
6985679312018-12-09 12:36:151Bus
6986679512018-12-09 12:36:151Bus
6987680012018-12-09 12:36:271Bus
6988679712018-12-09 12:36:341Bus
6989680312018-12-09 12:36:391Bus
6990679412018-12-09 12:36:411Bus
6991680412018-12-09 12:36:541Bus
6992680812018-12-09 12:36:551Bus
6993681312018-12-09 12:37:151Bus
6994679812018-12-09 12:37:171Bus
6995681012018-12-09 12:37:191Bus
6996680212018-12-09 12:37:201Bus
6997681512018-12-09 12:37:231Bus
6998680912018-12-09 12:37:291Bus
6999682412018-12-09 12:37:551Bus
7000680112018-12-09 12:37:591Bus
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;