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 5,401–5,425 of 9,738

entry_scan, page 217 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5401563652018-04-25 11:10:531Walk
5402564622018-04-25 13:00:131Walk
5403564522018-04-25 13:00:331Walk
5404565122018-04-25 14:40:181Bus
5405564822018-04-25 14:40:241Bus
5406565022018-04-25 14:40:271Bus
5407564722018-04-25 14:40:351Bus
5408564922018-04-25 14:40:471Bus
5409565342018-04-26 09:49:051Bus
5410565442018-04-26 09:49:231Bus
5411549912018-04-26 14:05:451Walk
5412564142018-04-26 15:00:101Bus
5413564042018-04-26 15:00:291Bus
5414566212018-04-27 10:33:061Walk
5415566112018-04-27 10:33:221Walk
5416558522018-04-27 10:56:071Private Vehicle
5417558622018-04-27 10:56:081Private Vehicle
5418565852018-04-27 13:53:261Metro
5419565752018-04-27 13:54:141Metro
5420566312018-04-28 09:09:331Taxi
5421566812018-04-28 10:32:331Metro
5422566712018-04-28 10:32:451Metro
5423566512018-04-28 10:32:511Metro
5424566612018-04-28 10:32:581Metro
5425566412018-04-28 10:33:081Metro
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;