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,976–8,000 of 9,738

entry_scan, page 320 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7976823522019-05-17 09:46:211Walk
7977823422019-05-17 09:46:531Walk
7978821532019-05-17 10:18:451Walk
7979821332019-05-17 10:18:471Walk
7980821432019-05-17 10:18:511Walk
7981753142019-05-17 10:37:031Bus
7982753242019-05-17 10:37:091Bus
7983753342019-05-17 10:37:211Bus
7984753542019-05-17 10:37:271Bus
7985753842019-05-17 10:37:511Bus
7986754442019-05-17 10:37:521Bus
7987754242019-05-17 10:37:571Bus
7988754542019-05-17 10:38:071Bus
7989754942019-05-17 10:38:091Bus
7990754142019-05-17 10:38:181Bus
7991756242019-05-17 10:38:191Bus
7992756042019-05-17 10:38:281Bus
7993754642019-05-17 10:38:331Bus
7994755442019-05-17 10:38:341Bus
7995754842019-05-17 10:38:431Bus
7996757042019-05-17 10:38:431Bus
7997755542019-05-17 10:38:551Bus
7998755742019-05-17 10:39:031Bus
7999756342019-05-17 10:39:031Bus
8000757142019-05-17 10:39:131Bus
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;