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 8,551–8,575 of 9,738

entry_scan, page 343 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8551872222019-08-07 10:04:101Taxi
8552871722019-08-07 10:21:461Metro
8553871822019-08-07 10:21:591Metro
8554872622019-08-07 12:13:321Other
8555872422019-08-07 12:13:421Other
8556872322019-08-07 12:13:561Other
8557872522019-08-07 12:14:131Other
8558864312019-08-07 14:38:441Walk
8559864212019-08-07 14:39:211Walk
8560864112019-08-07 14:39:231Walk
8561864412019-08-07 14:39:301Walk
8562873412019-08-09 09:05:501Walk
8563873312019-08-09 09:06:181Walk
8564873512019-08-09 09:06:241Walk
8565873632019-08-09 09:56:011Walk
8566873712019-08-09 10:50:341Bus
8567873812019-08-09 10:50:431Bus
8568871012019-08-09 11:12:541Walk
8569865512019-08-10 10:49:281Train
8570874312019-08-10 11:31:271Walk
8571874412019-08-10 11:31:311Walk
8572874112019-08-10 11:31:391Walk
8573874212019-08-10 11:31:591Walk
8574865812019-08-10 12:01:091Metro
8575865612019-08-10 12:01:151Metro
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;