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,001–9,025 of 9,738

entry_scan, page 361 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9001918212019-10-26 11:32:351Metro
9002918312019-10-26 11:32:441Metro
9003923712019-10-26 14:56:151Train
9004923812019-10-26 14:56:241Train
9005923612019-10-26 14:56:281Train
9006930922019-10-27 15:04:361Metro
9007931022019-10-27 15:04:501Metro
9008917342019-10-28 11:30:281Walk
9009932222019-10-28 11:39:061Private Vehicle
9010917312019-10-28 13:30:450NULL
9011931942019-10-28 13:44:291Walk
9012931842019-10-28 13:44:471Walk
9013932512019-10-28 14:16:001Train
9014912142019-10-28 14:26:471Walk
9015932222019-10-28 14:29:380NULL
9016932112019-10-29 09:50:051Metro
9017932012019-10-29 09:50:431Metro
9018931212019-10-29 10:28:581Walk
9019931112019-10-29 10:29:451Walk
9020932952019-10-29 11:33:421Walk
9021933052019-10-29 11:33:501Walk
9022932742019-10-29 11:43:471Walk
9023932642019-10-29 11:44:231Walk
9024931422019-10-29 13:11:351Bus
9025931722019-10-29 13:11:401Bus
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;