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,276–1,300 of 9,738

entry_scan, page 52 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1276117042015-11-10 09:50:281Other
1277116542015-11-10 09:50:301Other
1278115742015-11-10 09:50:541Other
1279117442015-11-10 09:50:561Other
1280116342015-11-10 09:51:381Other
1281116642015-11-10 09:51:401Other
1282116142015-11-10 09:51:421Other
1283115842015-11-10 09:51:521Other
1284116942015-11-10 09:53:061Other
1285116242015-11-10 09:53:151Other
1286116442015-11-10 09:53:161Other
1287117142015-11-10 09:53:301Other
1288116742015-11-10 09:54:301Other
1289142252015-11-10 13:44:291Other
1290142152015-11-10 13:44:461Other
1291142352015-11-10 13:44:511Other
1292135212015-11-12 10:30:191Walk
1293135112015-11-12 10:30:241Walk
1294144412015-11-12 11:37:361Walk
1295144612015-11-12 11:37:491Walk
1296144212015-11-12 11:38:001Walk
1297144512015-11-12 11:38:061Walk
1298144312015-11-12 11:38:151Walk
1299142512015-11-12 13:52:031Bus
1300142412015-11-12 13:52:181Bus
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;