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,126–9,150 of 9,738

entry_scan, page 366 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9126919742019-11-09 11:32:311Bus
9127920642019-11-09 11:32:511Bus
9128922042019-11-09 11:32:551Bus
9129921542019-11-09 11:33:011Bus
9130921242019-11-09 11:33:111Bus
9131920042019-11-09 11:33:391Bus
9132932312019-11-09 11:33:421Walk
9133920242019-11-09 11:33:491Bus
9134932412019-11-09 11:33:491Walk
9135920442019-11-09 11:33:551Bus
9136921042019-11-09 11:34:411Bus
9137920942019-11-09 11:34:551Bus
9138920542019-11-09 11:35:101Bus
9139921342019-11-09 11:35:141Bus
9140921142019-11-09 11:36:131Bus
9141921942019-11-09 11:36:201Bus
9142921442019-11-09 11:36:251Bus
9143922142019-11-09 11:36:421Bus
9144922542019-11-09 11:36:451Bus
9145921642019-11-09 11:36:511Bus
9146922642019-11-09 11:36:551Bus
9147922442019-11-09 11:37:151Bus
9148921742019-11-09 11:37:371Bus
9149921842019-11-09 11:38:251Bus
9150922242019-11-09 11:38:471Bus
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;