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,576–9,600 of 9,738

entry_scan, page 384 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9576968042020-01-18 09:08:351Taxi
9577967742020-01-18 09:08:371Taxi
9578969612020-01-18 12:06:581Metro
9579969512020-01-18 12:07:031Metro
9580969712020-01-18 12:24:161Bus
9581969312020-01-18 14:55:521Walk
9582969412020-01-18 14:56:041Walk
9583970012020-01-19 09:40:311Metro
9584969912020-01-19 09:40:431Metro
9585968952020-01-19 12:42:121Metro
9586968852020-01-19 12:42:141Metro
9587968652020-01-19 12:42:191Metro
9588968752020-01-19 12:42:381Metro
9589970242020-01-20 12:25:131Walk
9590968222020-01-20 14:46:471Walk
9591968322020-01-20 14:46:561Walk
9592970322020-01-21 12:56:081Metro
9593970512020-01-21 13:44:301Train
9594970612020-01-21 13:44:361Train
9595970412020-01-21 13:45:061Train
9596971142020-01-22 09:49:291Bus
9597969812020-01-22 10:35:271Private Vehicle
9598964512020-01-22 12:27:321Walk
9599964412020-01-22 12:27:551Walk
9600971412020-01-22 13:17:111Walk
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;