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 4,426–4,450 of 9,738

entry_scan, page 178 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4426420612017-09-20 12:34:391Other
4427420812017-09-20 12:34:491Other
4428422812017-09-20 12:34:571Other
4429421512017-09-20 12:35:021Other
4430421912017-09-20 12:35:071Other
4431421612017-09-20 12:35:091Other
4432421412017-09-20 12:35:131Other
4433420712017-09-20 12:35:231Other
4434421112017-09-20 12:35:341Other
4435422912017-09-20 12:35:341Other
4436421012017-09-20 12:35:371Other
4437421312017-09-20 12:36:131Other
4438422012017-09-20 12:36:251Other
4439422112017-09-20 12:36:341Other
4440422212017-09-20 12:37:091Other
4441422512017-09-20 12:37:101Other
4442421812017-09-20 12:37:131Other
4443421712017-09-20 12:37:431Other
4444422612017-09-20 12:38:191Other
4445422712017-09-20 12:39:011Other
4446422412017-09-20 12:39:211Other
4447423712017-09-20 12:39:391Other
4448423512017-09-20 12:39:581Other
4449423012017-09-20 12:40:111Other
4450423212017-09-20 12:40:371Other
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;