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,076–3,100 of 9,738

entry_scan, page 124 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3076298442016-12-26 09:43:351Bus
3077298142016-12-26 09:43:371Bus
3078298042016-12-26 09:43:491Bus
3079298742016-12-26 09:44:111Bus
3080298542016-12-26 09:44:161Bus
3081331022016-12-26 14:30:031Walk
3082330922016-12-26 14:30:251Walk
3083330822016-12-26 14:30:261Walk
3084331112016-12-27 10:33:431Taxi
3085307822016-12-27 10:42:511Metro
3086308022016-12-27 10:42:531Metro
3087307922016-12-27 10:43:371Metro
3088331322016-12-27 10:54:261Metro
3089331222016-12-27 10:54:291Metro
3090331412016-12-27 12:15:381Walk
3091331512016-12-27 12:34:121Other
3092331612016-12-27 12:34:261Other
3093331912016-12-28 09:09:491Walk
3094330232016-12-28 11:03:231Walk
3095301622016-12-28 14:32:021Metro
3096301522016-12-28 14:32:211Metro
3097332242016-12-29 10:08:101Walk
3098332432016-12-29 11:33:261Metro
3099332332016-12-29 11:33:401Metro
3100333112016-12-30 11:47:001Walk
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;