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 6,476–6,500 of 9,738

entry_scan, page 260 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6476670812018-09-18 11:42:261Walk
6477673312018-09-18 15:49:121Walk
6478673112018-09-18 15:49:221Walk
6479673012018-09-18 15:49:471Walk
6480673212018-09-18 15:49:521Walk
6481660912018-09-18 16:45:091Taxi
6482661012018-09-18 16:45:431Taxi
6483673112018-09-18 17:22:420NULL
6484673012018-09-18 17:22:520NULL
6485673312018-09-18 17:25:470NULL
6486672932018-09-19 10:24:541Walk
6487673442018-09-19 11:44:491Bus
6488673542018-09-19 11:45:161Bus
6489673642018-09-19 11:45:171Bus
6490670012018-09-19 11:59:211Other
6491670112018-09-19 11:59:251Other
6492673722018-09-20 11:30:251Bus
6493673822018-09-20 11:30:311Bus
6494648412018-09-20 14:05:381Metro
6495674112018-09-21 09:01:341Walk
6496674012018-09-21 09:01:471Walk
6497674012018-09-21 11:20:410NULL
6498674112018-09-21 11:42:130NULL
6499669212018-09-23 13:52:061Walk
6500674812018-09-23 14:00:181Train
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;