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,551–9,575 of 9,738

entry_scan, page 383 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9551966742020-01-13 09:46:201Metro
9552953512020-01-13 16:30:541Private Vehicle
9553966122020-01-14 09:51:491Other
9554965922020-01-14 09:52:161Other
9555966022020-01-14 09:52:341Other
9556967512020-01-14 10:21:471Walk
9557967332020-01-14 11:10:321Walk
9558967432020-01-14 11:10:501Walk
9559967622020-01-14 11:46:291Metro
9560965922020-01-14 12:49:350NULL
9561966122020-01-14 13:41:150NULL
9562966012020-01-14 13:41:590NULL
9563968422020-01-15 14:38:081Walk
9564968522020-01-15 14:38:231Walk
9565965332020-01-16 09:36:081Metro
9566955412020-01-16 15:14:121Taxi
9567955512020-01-16 15:14:451Taxi
9568955512020-01-16 17:22:220NULL
9569967022020-01-17 14:26:551Taxi
9570967122020-01-17 14:26:581Taxi
9571967222020-01-17 14:27:111Taxi
9572966922020-01-17 14:27:331Taxi
9573967842020-01-18 09:08:001Taxi
9574967942020-01-18 09:08:171Taxi
9575968142020-01-18 09:08:201Taxi
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;