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,726–3,750 of 9,738

entry_scan, page 150 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3726385622017-05-07 11:59:391Metro
3727386022017-05-07 11:59:491Metro
3728385922017-05-07 12:00:011Metro
3729389212017-05-07 16:32:321Metro
3730389312017-05-07 16:32:591Metro
3731389412017-05-07 16:33:001Metro
3732390522017-05-08 10:56:211Metro
3733390222017-05-08 10:56:461Metro
3734390422017-05-08 10:57:001Metro
3735390322017-05-08 10:57:071Metro
3736390732017-05-08 13:51:181Walk
3737390632017-05-08 13:51:271Walk
3738391432017-05-09 11:37:501Bus
3739391212017-05-10 14:02:461Other
3740391312017-05-10 14:02:471Other
3741391312017-05-10 15:50:360NULL
3742391912017-05-11 10:46:201Walk
3743389912017-05-11 10:57:521Taxi
3744389812017-05-11 10:58:161Taxi
3745389712017-05-11 10:58:261Taxi
3746390012017-05-11 10:58:361Taxi
3747392232017-05-11 14:12:011Metro
3748392332017-05-11 14:12:021Metro
3749392422017-05-11 15:57:251Metro
3750392522017-05-11 15:57:331Metro
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;