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,251–9,275 of 9,738

entry_scan, page 371 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9251943812019-11-29 12:36:411Taxi
9252943712019-11-29 12:37:171Taxi
9253948612019-11-30 10:03:461Train
9254948512019-11-30 10:03:541Train
9255948412019-11-30 10:04:021Train
9256948512019-11-30 11:58:520NULL
9257948612019-11-30 12:53:320NULL
9258948412019-11-30 13:30:460NULL
9259948732019-11-30 16:48:551Bus
9260947852019-12-01 13:49:371Walk
9261949342019-12-01 14:19:411Walk
9262941212019-12-01 14:51:141Metro
9263949212019-12-01 16:55:291Metro
9264949112019-12-01 16:55:591Metro
9265949442019-12-02 16:43:261Metro
9266949512019-12-03 09:08:231Train
9267949612019-12-03 09:08:401Train
9268950152019-12-04 10:29:191Walk
9269949822019-12-05 09:40:441Metro
9270949922019-12-05 09:40:461Metro
9271949722019-12-05 09:41:071Metro
9272950022019-12-05 09:41:101Metro
9273951132019-12-05 15:21:361Bus
9274951032019-12-05 15:21:561Bus
9275952012019-12-07 11:19:441Bus
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;