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,026–6,050 of 9,738

entry_scan, page 242 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6026630822018-07-29 09:26:101Metro
6027630922018-07-29 09:26:151Metro
6028630722018-07-29 09:26:201Metro
6029631022018-07-29 09:26:471Metro
6030622042018-07-29 11:16:431Bus
6031621942018-07-29 11:17:021Bus
6032627812018-07-29 12:25:001Bus
6033627912018-07-29 12:25:281Bus
6034631612018-07-30 12:07:471Walk
6035631712018-07-30 12:07:591Walk
6036622412018-07-30 13:14:071Metro
6037632112018-07-30 15:35:001Metro
6038632012018-07-30 15:35:261Metro
6039632212018-07-30 15:35:281Metro
6040631812018-07-30 15:35:341Metro
6041631912018-07-30 15:35:341Metro
6042632512018-07-31 09:40:181Metro
6043632312018-07-31 09:40:251Metro
6044632412018-07-31 09:40:361Metro
6045632612018-07-31 09:40:471Metro
6046630252018-07-31 10:50:581Walk
6047630412018-07-31 11:49:541Metro
6048630512018-07-31 11:50:361Metro
6049632752018-07-31 12:57:401Taxi
6050633812018-08-02 11:03:051Private Vehicle
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;