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 3,376–3,400 of 9,738

entry_scan, page 136 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3376335942017-03-14 11:06:591Walk
3377336042017-03-14 11:07:141Walk
3378337542017-03-14 11:07:201Walk
3379337242017-03-14 11:07:451Walk
3380336542017-03-14 11:07:591Walk
3381337342017-03-14 11:08:231Walk
3382336842017-03-14 11:08:441Walk
3383337942017-03-14 11:09:021Walk
3384338042017-03-14 11:09:131Walk
3385337642017-03-14 11:09:291Walk
3386337842017-03-14 11:09:551Walk
3387337442017-03-14 11:09:591Walk
3388338142017-03-14 11:10:341Walk
3389337742017-03-14 11:10:441Walk
3390362112017-03-15 11:02:081Walk
3391361912017-03-15 11:02:301Walk
3392362312017-03-15 11:02:311Walk
3393362012017-03-15 11:02:381Walk
3394362212017-03-15 11:02:441Walk
3395325342017-03-15 11:20:501Walk
3396325442017-03-15 11:20:591Walk
3397325542017-03-15 11:21:061Walk
3398325642017-03-15 11:21:111Walk
3399326242017-03-15 11:21:261Walk
3400325742017-03-15 11:21:301Walk
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;