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 4,651–4,675 of 9,738

entry_scan, page 187 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4651478512017-11-04 12:20:121Bus
4652478612017-11-04 12:20:211Bus
4653442212017-11-06 13:35:361Bus
4654442312017-11-06 13:35:511Bus
4655442512017-11-06 13:35:541Bus
4656442712017-11-06 13:36:011Bus
4657442412017-11-06 13:36:021Bus
4658442812017-11-06 13:36:061Bus
4659442912017-11-06 13:36:111Bus
4660443012017-11-06 13:36:241Bus
4661443512017-11-06 13:36:281Bus
4662442612017-11-06 13:36:321Bus
4663443112017-11-06 13:36:391Bus
4664443812017-11-06 13:36:401Bus
4665443412017-11-06 13:37:001Bus
4666444412017-11-06 13:37:211Bus
4667445112017-11-06 13:37:281Bus
4668445212017-11-06 13:37:321Bus
4669443212017-11-06 13:37:361Bus
4670444312017-11-06 13:37:361Bus
4671444812017-11-06 13:37:411Bus
4672443312017-11-06 13:37:481Bus
4673443712017-11-06 13:38:061Bus
4674443612017-11-06 13:38:101Bus
4675444012017-11-06 13:38:181Bus
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;