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 5,026–5,050 of 9,738

entry_scan, page 202 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5026521112018-01-22 12:39:031Taxi
5027520912018-01-22 12:39:081Taxi
5028521722018-01-22 14:13:281Taxi
5029522112018-01-23 09:02:261Walk
5030522012018-01-23 09:03:011Walk
5031522932018-01-24 13:31:021Bus
5032523012018-01-26 10:53:371Walk
5033523112018-01-26 10:53:531Walk
5034522722018-01-26 12:29:051Metro
5035522822018-01-26 12:29:301Metro
5036522622018-01-26 12:29:471Metro
5037523312018-01-26 13:02:251Walk
5038523412018-01-26 13:02:591Walk
5039521822018-01-28 14:59:231Metro
5040521922018-01-28 14:59:431Metro
5041523822018-01-29 10:03:171Bus
5042524022018-01-29 10:03:241Bus
5043523922018-01-29 10:03:451Bus
5044523522018-01-29 14:07:241Taxi
5045523622018-01-29 14:08:011Taxi
5046520412018-02-01 14:06:021Metro
5047514912018-02-02 11:44:581Metro
5048514812018-02-02 11:45:141Metro
5049524412018-02-04 10:33:071Walk
5050524542018-02-04 10:57:561Bus
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;