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,501–5,525 of 9,738

entry_scan, page 221 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5501569912018-05-06 09:43:371Metro
5502569612018-05-06 09:57:271Private Vehicle
5503569512018-05-06 09:57:411Private Vehicle
5504565542018-05-06 10:13:461Metro
5505565642018-05-06 10:14:051Metro
5506557912018-05-06 13:16:211Other
5507557812018-05-06 13:16:351Other
5508558112018-05-06 13:16:441Other
5509558012018-05-06 13:16:501Other
5510537742018-05-07 11:53:311Bus
5511537842018-05-07 11:53:391Bus
5512538042018-05-07 11:53:461Bus
5513537942018-05-07 11:53:491Bus
5514538242018-05-07 11:54:011Bus
5515538142018-05-07 11:54:151Bus
5516538642018-05-07 11:54:341Bus
5517538742018-05-07 11:54:411Bus
5518538842018-05-07 11:54:591Bus
5519538342018-05-07 11:55:011Bus
5520540242018-05-07 11:55:111Bus
5521538442018-05-07 11:55:161Bus
5522539842018-05-07 11:55:161Bus
5523539342018-05-07 11:55:231Bus
5524539042018-05-07 11:55:281Bus
5525539442018-05-07 11:55:301Bus
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;