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,826–6,850 of 9,738

entry_scan, page 274 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6826704922018-11-18 11:06:301Walk
6827705122018-11-18 11:06:421Walk
6828704822018-11-18 11:06:521Walk
6829707312018-11-19 10:13:021Metro
6830707412018-11-19 10:13:111Metro
6831707512018-11-19 10:13:211Metro
6832690522018-11-19 12:18:521Bus
6833690222018-11-19 12:18:541Bus
6834690422018-11-19 12:19:021Bus
6835690322018-11-19 12:19:251Bus
6836707112018-11-19 13:54:121Bus
6837707822018-11-19 14:51:591Walk
6838707922018-11-19 14:52:121Walk
6839707722018-11-19 14:52:211Walk
6840707622018-11-19 14:52:331Walk
6841708112018-11-21 13:08:061Metro
6842708212018-11-21 13:08:361Metro
6843701112018-11-21 14:07:571Walk
6844701212018-11-21 14:08:051Walk
6845701312018-11-21 14:08:281Walk
6846708452018-11-21 14:48:131Bus
6847700422018-11-21 15:52:051Bus
6848715022018-11-22 10:59:231Metro
6849715122018-11-22 10:59:241Metro
6850715222018-11-22 10:59:261Metro
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;