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

entry_scan, page 190 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4726486022017-11-21 13:41:570NULL
4727481242017-11-21 14:30:291Train
4728481342017-11-21 14:30:431Train
4729481142017-11-21 14:30:521Train
4730487612017-11-22 09:52:151Walk
4731487512017-11-22 09:52:441Walk
4732487142017-11-22 09:55:281Walk
4733487242017-11-22 09:55:281Walk
4734487342017-11-22 09:55:411Walk
4735487442017-11-22 09:55:511Walk
4736487712017-11-22 10:22:341Bus
4737487812017-11-22 10:22:481Bus
4738468412017-11-22 12:07:551Walk
4739468512017-11-22 12:08:021Walk
4740468612017-11-22 12:08:231Walk
4741468812017-11-22 12:08:251Walk
4742469512017-11-22 12:08:271Walk
4743469112017-11-22 12:08:351Walk
4744469212017-11-22 12:08:371Walk
4745469612017-11-22 12:08:401Walk
4746468912017-11-22 12:08:511Walk
4747469312017-11-22 12:08:511Walk
4748469712017-11-22 12:09:051Walk
4749470012017-11-22 12:09:071Walk
4750470812017-11-22 12:09:151Walk
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;