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 6,326–6,350 of 9,738

entry_scan, page 254 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6326584642018-08-29 13:46:111Bus
6327585142018-08-29 13:46:191Bus
6328584542018-08-29 13:46:281Bus
6329584342018-08-29 13:46:321Bus
6330584042018-08-29 13:46:411Bus
6331584942018-08-29 13:46:411Bus
6332585042018-08-29 13:46:471Bus
6333584842018-08-29 13:46:491Bus
6334585442018-08-29 13:46:511Bus
6335584442018-08-29 13:47:011Bus
6336585342018-08-29 13:47:051Bus
6337585942018-08-29 13:47:161Bus
6338586042018-08-29 13:47:211Bus
6339585642018-08-29 13:47:231Bus
6340585742018-08-29 13:47:291Bus
6341584742018-08-29 13:47:341Bus
6342585842018-08-29 13:47:591Bus
6343585542018-08-29 13:48:201Bus
6344586242018-08-29 13:48:271Bus
6345586342018-08-29 13:48:341Bus
6346585242018-08-29 13:48:471Bus
6347586142018-08-29 13:51:291Bus
6348586442018-08-29 13:51:411Bus
6349657112018-08-30 09:14:071Metro
6350657212018-08-30 09:14:271Metro
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;