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,776–7,800 of 9,738

entry_scan, page 312 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7776786812019-04-15 12:07:251Bus
7777786912019-04-15 12:07:341Bus
7778786012019-04-15 12:07:371Bus
7779787012019-04-15 12:07:431Bus
7780785512019-04-15 12:08:061Bus
7781785912019-04-15 12:08:301Bus
7782787212019-04-15 12:08:441Bus
7783786212019-04-15 12:10:191Bus
7784787312019-04-15 12:10:221Bus
7785787412019-04-15 12:11:191Bus
7786799312019-04-16 09:21:181Bus
7787799212019-04-16 09:21:271Bus
7788808342019-04-16 09:26:371Metro
7789808442019-04-16 09:26:401Metro
7790799312019-04-16 11:03:050NULL
7791799212019-04-16 12:57:010NULL
7792806342019-04-16 15:15:021Walk
7793806642019-04-16 15:15:081Walk
7794806442019-04-16 15:15:091Walk
7795806542019-04-16 15:15:421Walk
7796808612019-04-17 11:00:071Other
7797790042019-04-17 12:51:091Taxi
7798790142019-04-17 12:51:531Taxi
7799808742019-04-17 15:18:351Walk
7800808512019-04-19 09:57:421Walk
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;