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 2,451–2,475 of 9,738

entry_scan, page 99 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2451253912016-07-22 13:26:151Walk
2452254012016-07-22 13:26:171Walk
2453254932016-07-23 14:35:441Metro
2454254832016-07-23 14:36:061Metro
2455245022016-07-24 09:57:111Private Vehicle
2456252222016-07-24 11:04:501Private Vehicle
2457254622016-07-25 10:42:431Metro
2458254522016-07-25 10:42:561Metro
2459245722016-07-25 11:36:071Metro
2460254622016-07-25 12:13:060NULL
2461254532016-07-25 13:47:470NULL
2462252752016-07-26 14:29:061Walk
2463252452016-07-26 14:29:101Walk
2464252652016-07-26 14:29:281Walk
2465252352016-07-26 14:29:441Walk
2466252552016-07-26 14:29:501Walk
2467256112016-07-26 15:32:171Walk
2468256212016-07-27 09:56:311Walk
2469256312016-07-27 10:55:421Walk
2470255512016-07-27 11:53:581Walk
2471255612016-07-27 11:54:321Walk
2472251822016-07-27 13:17:301Train
2473251722016-07-27 13:17:321Train
2474251622016-07-27 13:18:021Train
2475256252016-07-27 13:31:280NULL
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;