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,526–1,550 of 9,738

entry_scan, page 62 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1526161832015-12-22 09:41:201Walk
1527162052015-12-22 10:17:481Walk
1528161952015-12-22 10:18:051Walk
1529145622015-12-22 11:58:081Metro
1530161832015-12-22 12:16:080NULL
1531162542015-12-22 15:29:501Metro
1532160712015-12-22 16:22:321Walk
1533160612015-12-22 16:22:471Walk
1534163042015-12-23 09:04:231Walk
1535162942015-12-23 09:04:271Walk
1536162842015-12-23 09:04:351Walk
1537162742015-12-23 09:05:041Walk
1538162642015-12-23 09:05:051Walk
1539161012015-12-24 11:25:241Walk
1540158542015-12-25 14:24:091Walk
1541163542015-12-26 09:04:561Walk
1542163252015-12-26 10:29:451Metro
1543163152015-12-26 10:30:041Metro
1544163722015-12-26 12:30:571Metro
1545163922015-12-26 12:31:001Metro
1546164022015-12-26 12:31:071Metro
1547163822015-12-26 12:31:171Metro
1548163642015-12-26 13:39:411Walk
1549164132015-12-27 10:39:121Private Vehicle
1550164232015-12-27 10:39:521Private Vehicle
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;