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,501–4,525 of 9,738

entry_scan, page 181 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4501465552017-10-01 10:30:251Metro
4502465822017-10-01 15:00:091Metro
4503465922017-10-01 15:00:301Metro
4504474212017-10-02 09:26:401Taxi
4505474442017-10-02 10:38:111Taxi
4506474342017-10-02 10:38:121Taxi
4507468212017-10-05 16:00:051Walk
4508468112017-10-05 16:00:121Walk
4509468012017-10-05 16:00:291Walk
4510475252017-10-07 10:52:341Walk
4511475712017-10-09 16:43:211Walk
4512476342017-10-10 09:12:131Metro
4513476242017-10-10 09:12:311Metro
4514459412017-10-10 09:31:211Bus
4515459512017-10-10 09:31:261Bus
4516459812017-10-10 09:31:371Bus
4517459612017-10-10 09:31:451Bus
4518459712017-10-10 09:32:001Bus
4519460212017-10-10 09:32:091Bus
4520459912017-10-10 09:32:111Bus
4521460012017-10-10 09:32:151Bus
4522460412017-10-10 09:32:211Bus
4523460312017-10-10 09:32:241Bus
4524461112017-10-10 09:32:291Bus
4525460112017-10-10 09:32:311Bus
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;