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 3,501–3,525 of 9,738

entry_scan, page 141 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3501370832017-04-04 13:44:181Bus
3502371032017-04-04 13:44:471Bus
3503370832017-04-04 15:53:590NULL
3504371022017-04-04 17:05:580NULL
3505370932017-04-04 17:09:230NULL
3506369312017-04-05 13:55:241Walk
3507368222017-04-06 10:46:411Metro
3508368122017-04-06 10:46:541Metro
3509372512017-04-06 13:06:391Metro
3510372612017-04-06 13:07:041Metro
3511318612017-04-06 13:15:541Bus
3512318712017-04-06 13:16:011Bus
3513318812017-04-06 13:16:081Bus
3514318912017-04-06 13:16:301Bus
3515319212017-04-06 13:16:361Bus
3516319012017-04-06 13:16:381Bus
3517319112017-04-06 13:16:491Bus
3518320212017-04-06 13:17:001Bus
3519320912017-04-06 13:17:091Bus
3520321812017-04-06 13:17:221Bus
3521319912017-04-06 13:17:241Bus
3522319512017-04-06 13:17:251Bus
3523320312017-04-06 13:17:301Bus
3524322312017-04-06 13:17:381Bus
3525319812017-04-06 13:17:541Bus
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;