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,226–1,250 of 9,738

entry_scan, page 50 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1226137012015-10-31 10:04:221Metro
1227136812015-10-31 10:14:391Bus
1228136612015-10-31 10:14:451Bus
1229136412015-10-31 10:14:591Bus
1230136712015-10-31 10:15:091Bus
1231136512015-10-31 10:15:121Bus
1232135412015-10-31 12:17:551Metro
1233135312015-10-31 12:18:001Metro
1234137322015-11-02 10:43:241Taxi
1235137212015-11-03 10:35:581Walk
1236135912015-11-03 10:58:551Walk
1237142042015-11-04 10:29:281Train
1238134122015-11-04 11:59:241Walk
1239134222015-11-04 11:59:261Walk
1240134322015-11-04 11:59:381Walk
1241141722015-11-06 11:08:411Taxi
1242141642015-11-06 15:34:391Bus
1243135642015-11-08 10:42:341Walk
1244132922015-11-08 16:21:381Metro
1245133022015-11-08 16:21:431Metro
1246132822015-11-08 16:22:251Metro
1247137142015-11-09 12:04:031Metro
1248142722015-11-09 15:37:081Walk
1249142822015-11-09 15:37:191Walk
1250113442015-11-10 09:46:301Other
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;