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,251–1,275 of 9,738

entry_scan, page 51 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1251113542015-11-10 09:46:401Other
1252113642015-11-10 09:46:441Other
1253113942015-11-10 09:46:501Other
1254114142015-11-10 09:46:541Other
1255114242015-11-10 09:46:581Other
1256113742015-11-10 09:47:031Other
1257114442015-11-10 09:47:241Other
1258114042015-11-10 09:47:351Other
1259114942015-11-10 09:47:401Other
1260114342015-11-10 09:47:421Other
1261114842015-11-10 09:47:481Other
1262114642015-11-10 09:47:581Other
1263115342015-11-10 09:48:001Other
1264115442015-11-10 09:48:051Other
1265115642015-11-10 09:48:361Other
1266114542015-11-10 09:48:501Other
1267114742015-11-10 09:48:541Other
1268116042015-11-10 09:49:001Other
1269115542015-11-10 09:49:101Other
1270115142015-11-10 09:49:261Other
1271115242015-11-10 09:49:371Other
1272115942015-11-10 09:49:421Other
1273117242015-11-10 09:50:061Other
1274117342015-11-10 09:50:121Other
1275115042015-11-10 09:50:151Other
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;