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 6,726–6,750 of 9,738

entry_scan, page 270 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6726692912018-10-28 12:07:181Bus
6727692422018-10-28 14:39:131Metro
6728692322018-10-28 14:39:241Metro
6729693642018-10-28 15:32:251Metro
6730693542018-10-28 15:32:461Metro
6731692742018-10-28 15:43:161Walk
6732689832018-10-28 15:49:121Bus
6733693842018-10-29 09:33:041Walk
6734693742018-10-29 09:33:151Walk
6735693942018-10-29 09:33:191Walk
6736694042018-10-29 09:33:241Walk
6737690122018-10-29 10:47:541Bus
6738690942018-10-29 11:05:111Taxi
6739691042018-10-29 11:05:571Taxi
6740691112018-10-29 12:30:321Walk
6741694122018-10-29 13:27:571Metro
6742694222018-10-29 13:27:571Metro
6743694322018-10-29 13:27:571Metro
6744690712018-10-29 13:28:451Other
6745690812018-10-29 13:29:051Other
6746690612018-10-29 13:29:071Other
6747689012018-10-31 09:47:531Walk
6748688912018-10-31 09:48:311Walk
6749694852018-10-31 10:52:111Walk
6750689722018-10-31 11:56:131Metro
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;