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 3,776–3,800 of 9,738

entry_scan, page 152 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3776388732017-05-18 11:26:091Metro
3777392112017-05-18 11:46:361Train
3778392012017-05-18 11:47:051Train
3779389042017-05-18 14:15:190NULL
3780388822017-05-18 14:18:180NULL
3781388932017-05-18 14:25:080NULL
3782388732017-05-18 14:39:490NULL
3783395212017-05-19 11:07:351Other
3784395422017-05-20 09:47:561Metro
3785395322017-05-20 09:48:021Metro
3786394112017-05-20 12:04:511Other
3787386942017-05-20 13:03:061Taxi
3788386842017-05-20 13:03:261Taxi
3789386742017-05-20 13:03:481Taxi
3790385512017-05-20 15:53:141Metro
3791395512017-05-21 10:51:211Walk
3792395612017-05-21 10:51:381Walk
3793389512017-05-23 12:28:181Metro
3794389612017-05-23 12:28:391Metro
3795391712017-05-24 10:21:261Train
3796391812017-05-24 10:21:301Train
3797394052017-05-24 10:46:511Walk
3798396512017-05-25 14:21:401Metro
3799396812017-05-25 14:21:471Metro
3800396612017-05-25 14:21:581Metro
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;