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 7,001–7,025 of 9,738

entry_scan, page 281 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7001680612018-12-09 12:37:591Bus
7002681112018-12-09 12:38:151Bus
7003681212018-12-09 12:38:231Bus
7004681412018-12-09 12:38:391Bus
7005681712018-12-09 12:38:401Bus
7006680712018-12-09 12:39:011Bus
7007681612018-12-09 12:39:171Bus
7008681912018-12-09 12:39:191Bus
7009682612018-12-09 12:40:071Bus
7010682812018-12-09 12:40:561Bus
7011682012018-12-09 12:41:111Bus
7012682512018-12-09 12:41:291Bus
7013682312018-12-09 12:41:351Bus
7014682112018-12-09 12:41:501Bus
7015681812018-12-09 12:41:591Bus
7016682712018-12-09 12:43:591Bus
7017722432018-12-11 09:18:281Walk
7018725222018-12-11 09:42:171Metro
7019721012018-12-11 13:44:091Walk
7020721112018-12-11 13:44:331Walk
7021725742018-12-12 10:28:231Metro
7022725642018-12-12 10:28:541Metro
7023725912018-12-12 12:01:071Metro
7024725812018-12-12 12:01:251Metro
7025722812018-12-13 12:30:201Metro
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;