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,301–4,325 of 9,738

entry_scan, page 173 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4301450612017-08-26 15:45:251Walk
4302450412017-08-26 15:45:541Walk
4303450512017-08-26 15:46:011Walk
4304451942017-08-27 12:06:091Taxi
4305451742017-08-27 12:06:231Taxi
4306451642017-08-27 12:06:241Taxi
4307451542017-08-27 12:06:351Taxi
4308451842017-08-27 12:06:391Taxi
4309452012017-08-27 15:16:351Metro
4310449912017-08-27 16:03:171Taxi
4311450012017-08-27 16:03:281Taxi
4312450912017-08-28 11:33:031Walk
4313450812017-08-28 11:33:141Walk
4314450712017-08-28 11:33:171Walk
4315451112017-08-28 11:33:261Walk
4316451012017-08-28 11:33:401Walk
4317437522017-08-29 11:26:331Walk
4318448512017-08-29 12:33:371Train
4319448612017-08-29 12:34:051Train
4320452612017-08-30 09:47:311Metro
4321452312017-08-30 10:14:461Metro
4322452522017-08-30 11:49:461Metro
4323439742017-09-01 10:21:201Metro
4324439642017-09-01 10:21:361Metro
4325439942017-09-01 10:21:481Metro
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;