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,176–5,200 of 9,738

entry_scan, page 208 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5176537442018-03-15 11:49:571Metro
5177537612018-03-15 13:48:041Bus
5178537512018-03-15 13:48:341Bus
5179530212018-03-15 15:23:221Taxi
5180542712018-03-16 12:22:501Bus
5181542852018-03-16 14:09:261Metro
5182542852018-03-16 16:53:560NULL
5183534122018-03-17 09:30:241Taxi
5184534022018-03-17 09:30:301Taxi
5185534322018-03-17 09:30:571Taxi
5186534222018-03-17 09:31:001Taxi
5187535222018-03-17 10:00:551Walk
5188543212018-03-17 11:25:001Metro
5189543512018-03-17 11:25:111Metro
5190543412018-03-17 11:25:141Metro
5191543312018-03-17 11:25:361Metro
5192543852018-03-18 10:44:101Walk
5193543752018-03-18 10:44:181Walk
5194543912018-03-18 11:11:581Walk
5195544012018-03-18 11:12:361Walk
5196543612018-03-18 16:31:041Walk
5197544932018-03-20 13:09:081Bus
5198544632018-03-20 13:09:131Bus
5199544532018-03-20 13:09:281Bus
5200544732018-03-20 13:09:431Bus
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;