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,701–3,725 of 9,738

entry_scan, page 149 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3701346142017-05-03 12:04:011Bus
3702347042017-05-03 12:04:051Bus
3703346542017-05-03 12:04:061Bus
3704346242017-05-03 12:04:131Bus
3705346042017-05-03 12:04:161Bus
3706346642017-05-03 12:04:171Bus
3707346442017-05-03 12:05:551Bus
3708388522017-05-04 11:27:451Taxi
3709384222017-05-04 14:23:461Private Vehicle
3710385412017-05-04 15:37:311Metro
3711388652017-05-05 11:09:411Bus
3712387422017-05-05 11:14:381Bus
3713387322017-05-05 11:14:451Bus
3714387522017-05-05 11:15:001Bus
3715387622017-05-05 11:15:021Bus
3716388342017-05-06 09:30:591Bus
3717388042017-05-06 09:31:141Bus
3718388242017-05-06 09:31:141Bus
3719388442017-05-06 09:31:151Bus
3720388142017-05-06 09:31:281Bus
3721385112017-05-06 10:00:391Walk
3722387222017-05-06 15:06:191Private Vehicle
3723389122017-05-06 15:07:191Metro
3724385722017-05-07 11:59:351Metro
3725385822017-05-07 11:59:351Metro
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;