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,301–7,325 of 9,738

entry_scan, page 293 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7301739212019-02-19 09:34:491Bus
7302739312019-02-19 09:34:571Bus
7303739512019-02-19 09:35:131Bus
7304740212019-02-19 09:35:171Bus
7305740112019-02-19 09:35:251Bus
7306739412019-02-19 09:35:301Bus
7307739612019-02-19 09:35:351Bus
7308739712019-02-19 09:35:371Bus
7309739912019-02-19 09:35:451Bus
7310741012019-02-19 09:35:491Bus
7311741112019-02-19 09:35:531Bus
7312740412019-02-19 09:35:551Bus
7313741812019-02-19 09:36:211Bus
7314739812019-02-19 09:36:221Bus
7315740012019-02-19 09:36:261Bus
7316741512019-02-19 09:36:351Bus
7317740612019-02-19 09:36:411Bus
7318742412019-02-19 09:36:451Bus
7319741412019-02-19 09:36:551Bus
7320742312019-02-19 09:37:151Bus
7321740812019-02-19 09:37:161Bus
7322740312019-02-19 09:37:271Bus
7323742812019-02-19 09:37:401Bus
7324743812019-02-19 09:37:411Bus
7325740912019-02-19 09:37:451Bus
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;