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,276–4,300 of 9,738

entry_scan, page 172 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4276448012017-08-22 16:01:321Walk
4277447812017-08-22 16:01:361Walk
4278448112017-08-22 16:01:481Walk
4279449132017-08-24 11:57:391Metro
4280449232017-08-24 11:57:491Metro
4281449332017-08-24 11:57:541Metro
4282449432017-08-24 11:57:591Metro
4283449022017-08-24 12:02:281Metro
4284448212017-08-24 13:17:451Metro
4285436112017-08-25 10:17:111Walk
4286436212017-08-25 10:17:281Walk
4287436012017-08-25 10:17:311Walk
4288436012017-08-25 12:36:490NULL
4289436212017-08-25 13:18:200NULL
4290436112017-08-25 13:49:320NULL
4291440142017-08-26 11:37:131Walk
4292440242017-08-26 11:37:141Walk
4293449612017-08-26 11:58:401Metro
4294449812017-08-26 11:58:541Metro
4295449712017-08-26 11:59:091Metro
4296450312017-08-26 13:55:231Walk
4297449612017-08-26 13:57:130NULL
4298449712017-08-26 14:19:100NULL
4299449812017-08-26 15:41:020NULL
4300447012017-08-26 15:42:301Bus
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;