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,076–8,100 of 9,738

entry_scan, page 324 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8076799712019-05-31 11:54:391Bus
8077799812019-05-31 11:54:491Bus
8078800012019-05-31 11:54:571Bus
8079800112019-05-31 11:55:031Bus
8080799912019-05-31 11:55:091Bus
8081800212019-05-31 11:55:091Bus
8082800312019-05-31 11:55:151Bus
8083800612019-05-31 11:55:331Bus
8084800412019-05-31 11:55:351Bus
8085800512019-05-31 11:56:151Bus
8086801012019-05-31 11:56:361Bus
8087801412019-05-31 11:56:381Bus
8088801512019-05-31 11:56:451Bus
8089802412019-05-31 11:56:541Bus
8090800712019-05-31 11:56:591Bus
8091802512019-05-31 11:56:591Bus
8092800912019-05-31 11:57:031Bus
8093801112019-05-31 11:57:131Bus
8094800812019-05-31 11:57:241Bus
8095801612019-05-31 11:57:301Bus
8096801212019-05-31 11:57:391Bus
8097801312019-05-31 11:57:511Bus
8098802012019-05-31 11:58:061Bus
8099802712019-05-31 11:58:091Bus
8100801812019-05-31 11:58:511Bus
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;