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,901–6,925 of 9,738

entry_scan, page 277 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6901706212018-12-02 11:04:511Walk
6902722142018-12-02 11:19:251Walk
6903722242018-12-02 11:20:051Walk
6904722042018-12-02 11:20:551Train
6905721942018-12-02 11:21:021Train
6906715412018-12-02 12:25:211Metro
6907715712018-12-02 12:25:221Metro
6908715612018-12-02 12:25:381Metro
6909715512018-12-02 12:26:051Metro
6910722342018-12-02 16:28:291Metro
6911716622018-12-03 10:32:271Metro
6912716322018-12-03 10:32:321Metro
6913716522018-12-03 10:32:341Metro
6914716422018-12-03 10:33:091Metro
6915694912018-12-04 13:56:501Bus
6916695112018-12-04 13:57:001Bus
6917695012018-12-04 13:57:051Bus
6918695212018-12-04 13:57:171Bus
6919695312018-12-04 13:57:181Bus
6920695512018-12-04 13:57:381Bus
6921696312018-12-04 13:57:381Bus
6922695412018-12-04 13:57:401Bus
6923695912018-12-04 13:57:501Bus
6924696712018-12-04 13:57:501Bus
6925695812018-12-04 13:58:021Bus
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;