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 8,501–8,525 of 9,738

entry_scan, page 341 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8501866952019-08-01 13:59:071Metro
8502867452019-08-02 09:17:341Walk
8503867752019-08-02 09:17:371Walk
8504867652019-08-02 09:17:401Walk
8505867552019-08-02 09:17:521Walk
8506868212019-08-02 09:21:461Taxi
8507868112019-08-02 09:21:481Taxi
8508867912019-08-02 09:21:571Taxi
8509867812019-08-02 09:22:041Taxi
8510868012019-08-02 09:22:211Taxi
8511867552019-08-02 11:14:000NULL
8512867752019-08-02 12:41:230NULL
8513867642019-08-02 12:53:490NULL
8514867452019-08-02 13:16:150NULL
8515868312019-08-02 13:52:551Walk
8516868412019-08-02 13:52:561Walk
8517868612019-08-02 16:55:561Walk
8518868512019-08-02 16:56:151Walk
8519866042019-08-03 09:12:401Walk
8520866142019-08-03 09:12:561Walk
8521865942019-08-03 09:13:041Walk
8522866242019-08-03 09:13:281Walk
8523867322019-08-04 09:50:001Metro
8524870412019-08-04 11:10:521Train
8525866522019-08-04 15:06:521Bus
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;