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 6,201–6,225 of 9,738

entry_scan, page 249 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6201624412018-08-18 14:56:431Walk
6202624512018-08-18 14:56:471Walk
6203624612018-08-18 14:56:481Walk
6204649232018-08-18 15:53:001Metro
6205649332018-08-18 15:53:251Metro
6206649522018-08-19 09:12:241Metro
6207649842018-08-19 11:08:071Bus
6208649642018-08-19 11:08:181Bus
6209649742018-08-19 11:08:401Bus
6210650042018-08-19 12:46:041Other
6211649942018-08-19 12:46:051Other
6212633312018-08-19 15:22:251Taxi
6213633212018-08-19 15:22:351Taxi
6214633612018-08-19 15:22:501Taxi
6215633512018-08-19 15:22:521Taxi
6216633412018-08-19 15:23:001Taxi
6217646222018-08-19 15:37:181Train
6218646322018-08-19 15:37:321Train
6219640732018-08-20 10:36:021Bus
6220650312018-08-20 12:53:241Walk
6221650412018-08-20 12:53:281Walk
6222650552018-08-21 09:35:161Walk
6223650652018-08-21 09:35:501Walk
6224629912018-08-21 09:43:341Walk
6225646632018-08-22 09:38:161Metro
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;