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 4,926–4,950 of 9,738

entry_scan, page 198 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4926505622018-01-07 13:18:511Train
4927505322018-01-07 13:19:081Train
4928505522018-01-07 13:19:101Train
4929504012018-01-07 15:07:301Walk
4930504112018-01-07 15:07:361Walk
4931505012018-01-08 09:26:171Private Vehicle
4932504912018-01-08 09:26:191Private Vehicle
4933505112018-01-08 09:26:271Private Vehicle
4934504812018-01-08 09:26:281Private Vehicle
4935504712018-01-08 09:26:351Private Vehicle
4936503552018-01-08 13:40:101Train
4937503652018-01-08 13:40:331Train
4938512422018-01-09 11:42:081Metro
4939512522018-01-09 11:42:121Metro
4940512632018-01-10 10:08:241Other
4941513042018-01-11 10:20:361Walk
4942513142018-01-11 10:20:591Walk
4943512912018-01-11 11:47:191Other
4944513912018-01-12 09:35:481Taxi
4945513812018-01-12 09:36:071Taxi
4946506012018-01-12 10:16:281Walk
4947514022018-01-12 14:45:581Metro
4948514122018-01-12 14:45:591Metro
4949505212018-01-13 10:11:351Metro
4950506552018-01-13 13:31:071Walk
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;