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,176–4,200 of 9,738

entry_scan, page 168 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4176432712017-08-06 12:25:071Walk
4177432512017-08-06 12:25:171Walk
4178432612017-08-06 12:25:301Walk
4179435752017-08-07 10:37:211Walk
4180435652017-08-07 10:37:311Walk
4181434342017-08-07 12:10:451Train
4182428332017-08-07 12:50:211Walk
4183428532017-08-07 12:50:261Walk
4184428432017-08-07 12:51:001Walk
4185435922017-08-07 13:17:191Metro
4186435822017-08-07 13:17:371Metro
4187435822017-08-07 14:48:420NULL
4188435922017-08-07 16:42:560NULL
4189434712017-08-09 11:37:491Bus
4190434612017-08-09 11:38:101Bus
4191435312017-08-09 15:13:521Metro
4192435412017-08-09 15:13:591Metro
4193435542017-08-10 12:38:371Walk
4194436812017-08-10 14:53:131Metro
4195436712017-08-10 14:53:221Metro
4196433512017-08-11 12:20:471Metro
4197433712017-08-11 12:20:511Metro
4198433612017-08-11 12:21:041Metro
4199433412017-08-11 12:21:081Metro
4200437722017-08-12 11:04:281Metro
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;