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,326–7,350 of 9,738

entry_scan, page 294 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7326743112019-02-19 09:37:551Bus
7327742612019-02-19 09:38:071Bus
7328740512019-02-19 09:38:091Bus
7329743012019-02-19 09:38:311Bus
7330740712019-02-19 09:38:371Bus
7331742512019-02-19 09:38:371Bus
7332744212019-02-19 09:38:501Bus
7333741212019-02-19 09:39:011Bus
7334741612019-02-19 09:39:221Bus
7335743212019-02-19 09:39:261Bus
7336743612019-02-19 09:39:541Bus
7337741312019-02-19 09:40:011Bus
7338743712019-02-19 09:40:011Bus
7339742012019-02-19 09:40:061Bus
7340743312019-02-19 09:40:171Bus
7341741712019-02-19 09:40:291Bus
7342742112019-02-19 09:40:491Bus
7343741912019-02-19 09:40:551Bus
7344742212019-02-19 09:41:011Bus
7345742912019-02-19 09:41:051Bus
7346744012019-02-19 09:42:041Bus
7347744112019-02-19 09:42:131Bus
7348743912019-02-19 09:42:451Bus
7349742712019-02-19 09:43:551Bus
7350743412019-02-19 09:44:551Bus
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;