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,051–3,075 of 9,738

entry_scan, page 123 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3051295642016-12-26 09:38:321Bus
3052296242016-12-26 09:38:391Bus
3053295742016-12-26 09:38:471Bus
3054296442016-12-26 09:38:491Bus
3055295942016-12-26 09:38:591Bus
3056297042016-12-26 09:39:141Bus
3057296542016-12-26 09:39:161Bus
3058296042016-12-26 09:39:291Bus
3059297142016-12-26 09:39:351Bus
3060296142016-12-26 09:39:441Bus
3061296342016-12-26 09:39:471Bus
3062296942016-12-26 09:39:511Bus
3063298642016-12-26 09:39:591Bus
3064298242016-12-26 09:40:411Bus
3065296742016-12-26 09:40:471Bus
3066298942016-12-26 09:41:111Bus
3067296842016-12-26 09:41:141Bus
3068297342016-12-26 09:41:171Bus
3069297742016-12-26 09:41:171Bus
3070297842016-12-26 09:41:491Bus
3071297242016-12-26 09:41:571Bus
3072297442016-12-26 09:42:251Bus
3073297642016-12-26 09:42:321Bus
3074297542016-12-26 09:42:391Bus
3075297942016-12-26 09:43:111Bus
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;