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,701–5,725 of 9,738

entry_scan, page 229 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5701580032018-06-07 11:53:591Train
5702579932018-06-07 11:54:271Train
5703595632018-06-07 13:15:221Walk
5704594622018-06-09 13:35:131Metro
5705594922018-06-09 13:35:221Metro
5706594822018-06-09 13:35:231Metro
5707594722018-06-09 13:35:251Metro
5708595212018-06-10 10:04:471Taxi
5709595112018-06-10 10:05:121Taxi
5710595312018-06-10 10:05:331Taxi
5711601522018-06-10 10:41:391Private Vehicle
5712601722018-06-10 10:58:011Metro
5713601622018-06-10 10:58:281Metro
5714602112018-06-10 12:34:401Train
5715602232018-06-11 16:23:151Other
5716602822018-06-12 15:02:471Bus
5717602952018-06-12 15:12:521Walk
5718603152018-06-12 15:12:561Walk
5719603052018-06-12 15:13:111Walk
5720595012018-06-13 10:47:171Train
5721602522018-06-13 11:01:401Bus
5722604212018-06-13 12:44:041Bus
5723604142018-06-13 14:56:311Taxi
5724603842018-06-13 14:56:361Taxi
5725604042018-06-13 14:56:531Taxi
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;