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 9,601–9,625 of 9,738

entry_scan, page 385 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9601971512020-01-22 13:17:131Walk
9602971322020-01-22 14:25:481Metro
9603971222020-01-22 14:26:061Metro
9604971712020-01-23 12:44:081Walk
9605972012020-01-23 12:44:091Walk
9606971912020-01-23 12:44:431Walk
9607966522020-01-23 13:22:111Metro
9608966422020-01-23 13:22:501Metro
9609972212020-01-23 14:25:281Bus
9610972112020-01-23 14:25:401Bus
9611973222020-01-25 09:02:581Taxi
9612973322020-01-25 09:03:081Taxi
9613973022020-01-25 14:23:221Taxi
9614972622020-01-25 14:23:281Taxi
9615972922020-01-25 14:23:391Taxi
9616972722020-01-25 14:23:411Taxi
9617972822020-01-25 14:23:491Taxi
9618973632020-01-26 12:14:571Bus
9619974052020-01-27 09:07:001Walk
9620974522020-01-29 11:00:131Taxi
9621972512020-01-29 11:10:251Walk
9622972412020-01-29 11:10:471Walk
9623972312020-01-29 11:11:091Walk
9624973712020-01-29 13:01:081Other
9625973912020-01-29 13:01:141Other
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;