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,876–5,900 of 9,738

entry_scan, page 236 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5876619312018-07-14 13:04:090NULL
5877622522018-07-15 11:15:231Taxi
5878622312018-07-15 11:59:251Walk
5879622712018-07-15 12:05:271Taxi
5880622612018-07-15 12:05:571Taxi
5881622552018-07-15 14:09:530NULL
5882622822018-07-15 14:11:291Private Vehicle
5883623022018-07-15 14:12:021Private Vehicle
5884622922018-07-15 14:12:051Private Vehicle
5885618512018-07-16 10:36:321Metro
5886618312018-07-16 10:36:351Metro
5887618412018-07-16 10:36:361Metro
5888624142018-07-17 09:13:221Other
5889624342018-07-17 09:13:411Other
5890624242018-07-17 09:14:011Other
5891596042018-07-17 09:51:551Other
5892596142018-07-17 09:52:031Other
5893596442018-07-17 09:52:151Other
5894596342018-07-17 09:52:191Other
5895596242018-07-17 09:52:211Other
5896596642018-07-17 09:52:371Other
5897596542018-07-17 09:52:501Other
5898597242018-07-17 09:52:551Other
5899597342018-07-17 09:53:131Other
5900597042018-07-17 09:53:151Other
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;