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 9,326–9,350 of 9,738

entry_scan, page 374 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9326896842019-12-15 11:06:591Bus
9327896742019-12-15 11:07:021Bus
9328897342019-12-15 11:07:081Bus
9329897842019-12-15 11:07:151Bus
9330898642019-12-15 11:07:171Bus
9331897142019-12-15 11:07:381Bus
9332897242019-12-15 11:07:381Bus
9333899142019-12-15 11:07:421Bus
9334897942019-12-15 11:08:021Bus
9335897442019-12-15 11:08:171Bus
9336897742019-12-15 11:08:201Bus
9337897642019-12-15 11:08:261Bus
9338898542019-12-15 11:08:561Bus
9339900642019-12-15 11:08:571Bus
9340898042019-12-15 11:09:351Bus
9341900142019-12-15 11:09:561Bus
9342898242019-12-15 11:10:011Bus
9343898442019-12-15 11:10:021Bus
9344898142019-12-15 11:10:101Bus
9345899942019-12-15 11:10:221Bus
9346899742019-12-15 11:10:441Bus
9347900342019-12-15 11:10:541Bus
9348898742019-12-15 11:11:061Bus
9349898842019-12-15 11:11:191Bus
9350900742019-12-15 11:11:261Bus
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;