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,251–6,275 of 9,738

entry_scan, page 251 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6251590042018-08-27 10:05:521Bus
6252589842018-08-27 10:05:561Bus
6253590442018-08-27 10:06:081Bus
6254589942018-08-27 10:06:181Bus
6255590742018-08-27 10:06:311Bus
6256590142018-08-27 10:06:461Bus
6257591242018-08-27 10:06:561Bus
6258590242018-08-27 10:07:001Bus
6259591442018-08-27 10:07:061Bus
6260590342018-08-27 10:07:211Bus
6261590942018-08-27 10:07:331Bus
6262591642018-08-27 10:07:361Bus
6263592642018-08-27 10:07:361Bus
6264590542018-08-27 10:07:421Bus
6265591042018-08-27 10:07:421Bus
6266590642018-08-27 10:07:461Bus
6267593342018-08-27 10:08:041Bus
6268591942018-08-27 10:08:171Bus
6269591542018-08-27 10:08:271Bus
6270590842018-08-27 10:08:361Bus
6271591142018-08-27 10:08:511Bus
6272593242018-08-27 10:09:121Bus
6273591842018-08-27 10:09:381Bus
6274591342018-08-27 10:09:511Bus
6275592242018-08-27 10:09: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;