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,751–6,775 of 9,738

entry_scan, page 271 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6751689622018-10-31 11:56:361Metro
6752694822018-10-31 14:26:520NULL
6753700242018-10-31 15:28:091Walk
6754700142018-10-31 15:28:571Walk
6755700212018-10-31 17:11:040NULL
6756693232018-11-02 10:08:081Metro
6757693132018-11-02 10:08:171Metro
6758693322018-11-02 10:21:431Walk
6759693422018-11-02 10:22:031Walk
6760689212018-11-02 13:54:541Metro
6761689312018-11-02 13:55:011Metro
6762700352018-11-03 09:01:471Walk
6763700352018-11-03 10:47:370NULL
6764701742018-11-04 10:25:471Walk
6765701912018-11-05 12:53:291Metro
6766702012018-11-05 12:53:531Metro
6767702112018-11-05 12:54:031Metro
6768702312018-11-05 14:26:041Train
6769702212018-11-05 14:26:081Train
6770702512018-11-06 13:11:271Other
6771702412018-11-06 13:11:291Other
6772702612018-11-06 13:11:341Other
6773694622018-11-08 14:02:181Walk
6774694522018-11-08 14:02:241Walk
6775694422018-11-08 14:02:381Walk
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;