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,301–1,325 of 9,738

entry_scan, page 53 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1301142612015-11-12 13:59:461Walk
1302144742015-11-12 14:34:181Walk
1303144812015-11-14 09:24:121Walk
1304144912015-11-14 10:18:311Walk
1305145012015-11-14 10:18:531Walk
1306145322015-11-14 13:09:241Metro
1307135812015-11-15 12:49:421Bus
1308135712015-11-15 12:49:521Bus
1309145822015-11-17 15:58:081Private Vehicle
1310145722015-11-17 15:58:201Private Vehicle
1311143512015-11-18 09:48:551Metro
1312143312015-11-18 09:49:041Metro
1313143412015-11-18 09:49:061Metro
1314143612015-11-18 09:49:321Metro
1315146032015-11-18 09:59:251Walk
1316145932015-11-18 09:59:501Walk
1317143212015-11-19 13:05:151Metro
1318145222015-11-20 12:27:361Walk
1319145122015-11-20 12:27:461Walk
1320145122015-11-20 15:05:390NULL
1321145212015-11-20 15:20:220NULL
1322150322015-11-21 11:06:321Metro
1323150242015-11-21 12:46:301Walk
1324142912015-11-21 13:09:131Metro
1325143012015-11-21 13:09:311Metro
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;