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,851–7,875 of 9,738

entry_scan, page 315 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7851812012019-04-23 09:10:371Walk
7852812112019-04-23 09:10:471Walk
7853811912019-04-23 09:11:021Walk
7854811712019-04-23 11:33:441Walk
7855811812019-04-23 11:34:151Walk
7856788712019-04-23 13:48:121Metro
7857788612019-04-23 13:48:151Metro
7858812832019-04-24 09:40:361Taxi
7859812932019-04-24 09:40:501Taxi
7860813032019-04-24 09:40:531Taxi
7861808012019-04-24 13:21:061Walk
7862807812019-04-24 13:21:111Walk
7863807912019-04-24 13:21:201Walk
7864809822019-04-25 09:37:411Bus
7865809722019-04-25 09:37:481Bus
7866809442019-04-25 09:51:181Walk
7867809342019-04-25 09:51:551Walk
7868809342019-04-25 11:46:200NULL
7869810322019-04-25 12:30:201Taxi
7870810222019-04-25 12:30:491Taxi
7871809442019-04-25 13:13:180NULL
7872812432019-04-26 10:20:361Walk
7873812732019-04-26 10:20:421Walk
7874812532019-04-26 10:20:461Walk
7875812632019-04-26 10:20:491Walk
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;