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,351–5,375 of 9,738

entry_scan, page 215 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5351555922018-04-13 10:20:101Metro
5352555822018-04-13 10:20:271Metro
5353556022018-04-13 10:20:361Metro
5354554922018-04-13 16:44:201Private Vehicle
5355555122018-04-13 16:44:231Private Vehicle
5356555022018-04-13 16:44:341Private Vehicle
5357556752018-04-14 10:48:051Walk
5358556552018-04-14 10:48:151Walk
5359556652018-04-14 10:48:251Walk
5360556452018-04-14 10:48:261Walk
5361556852018-04-14 10:48:321Walk
5362554412018-04-15 11:58:471Metro
5363557242018-04-15 14:36:441Walk
5364552352018-04-15 15:44:121Walk
5365550112018-04-16 09:27:431Walk
5366552232018-04-16 14:37:351Bus
5367537122018-04-16 16:21:111Walk
5368537222018-04-16 16:21:561Walk
5369555722018-04-17 12:57:351Other
5370556322018-04-18 09:32:011Metro
5371556222018-04-18 09:32:191Metro
5372558322018-04-18 11:52:361Taxi
5373529342018-04-18 14:25:011Walk
5374529242018-04-18 14:25:101Walk
5375553212018-04-18 14:51:221Walk
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;