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 8,376–8,400 of 9,738

entry_scan, page 336 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8376794742019-07-14 11:01:581Bus
8377794642019-07-14 11:01:591Bus
8378794842019-07-14 11:02:111Bus
8379796042019-07-14 11:02:271Bus
8380796242019-07-14 11:02:431Bus
8381795342019-07-14 11:02:551Bus
8382795542019-07-14 11:02:561Bus
8383796142019-07-14 11:03:041Bus
8384795142019-07-14 11:03:091Bus
8385795242019-07-14 11:03:431Bus
8386797142019-07-14 11:03:551Bus
8387796442019-07-14 11:04:031Bus
8388797242019-07-14 11:04:031Bus
8389796942019-07-14 11:04:161Bus
8390795642019-07-14 11:04:431Bus
8391796542019-07-14 11:04:461Bus
8392796342019-07-14 11:05:571Bus
8393797042019-07-14 11:07:351Bus
8394796842019-07-14 11:07:431Bus
8395855732019-07-14 15:07:291Metro
8396855632019-07-14 15:07:511Metro
8397849522019-07-15 09:32:311Private Vehicle
8398849422019-07-15 09:32:531Private Vehicle
8399855942019-07-15 10:01:431Walk
8400838722019-07-15 12:28:081Walk
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;