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,526–6,550 of 9,738

entry_scan, page 262 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6526662222018-09-27 10:50:101Private Vehicle
6527662122018-09-27 10:50:121Private Vehicle
6528662322018-09-27 10:50:311Private Vehicle
6529651712018-09-28 14:09:221Walk
6530677452018-09-28 14:23:371Metro
6531677552018-09-28 14:24:021Metro
6532677712018-09-29 11:33:591Metro
6533677812018-09-29 11:34:191Metro
6534669112018-09-29 12:15:441Bus
6535669012018-09-29 12:16:021Bus
6536678332018-09-30 10:41:121Metro
6537677642018-09-30 13:23:371Private Vehicle
6538635522018-10-02 09:14:141Private Vehicle
6539635422018-10-02 09:14:411Private Vehicle
6540678122018-10-02 14:41:541Private Vehicle
6541678222018-10-02 14:42:231Private Vehicle
6542683212018-10-03 10:16:251Taxi
6543683312018-10-03 10:16:271Taxi
6544683512018-10-03 11:00:221Walk
6545683412018-10-03 11:00:541Walk
6546678422018-10-03 15:53:071Private Vehicle
6547678722018-10-03 15:53:121Private Vehicle
6548678522018-10-03 15:53:271Private Vehicle
6549678622018-10-03 15:53:281Private Vehicle
6550675412018-10-04 09:52:231Metro
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;