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 1,101–1,125 of 9,738

entry_scan, page 45 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1101128212015-10-02 09:16:431Walk
1102128112015-10-02 09:16:521Walk
1103128012015-10-02 09:17:201Walk
1104128412015-10-02 09:17:201Walk
1105127912015-10-02 09:25:401Other
1106128512015-10-02 12:59:291Walk
1107128622015-10-02 13:26:061Metro
1108128912015-10-02 14:44:441Walk
1109128812015-10-02 14:45:001Walk
1110128712015-10-02 14:45:181Walk
1111126822015-10-02 15:06:051Metro
1112126922015-10-02 15:06:181Metro
1113127122015-10-02 15:06:191Metro
1114127022015-10-02 15:06:201Metro
1115126722015-10-02 15:06:301Metro
1116107112015-10-04 10:38:131Walk
1117107012015-10-04 10:38:221Walk
1118129252015-10-04 12:47:381Walk
1119129452015-10-04 12:48:081Walk
1120129152015-10-04 12:48:111Walk
1121129352015-10-04 12:48:121Walk
1122126612015-10-05 10:30:271Other
1123126512015-10-05 10:30:381Other
1124118852015-10-07 13:26:451Walk
1125118952015-10-07 13:26:551Walk
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;