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,976–6,000 of 9,738

entry_scan, page 240 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5976627412018-07-21 09:42:541Walk
5977627312018-07-21 09:42:561Walk
5978627652018-07-21 10:28:031Metro
5979627552018-07-21 10:28:201Metro
5980617612018-07-21 11:56:431Metro
5981627712018-07-21 15:26:201Metro
5982626312018-07-21 15:39:521Metro
5983626512018-07-21 15:40:091Metro
5984626412018-07-21 15:40:361Metro
5985623252018-07-22 10:13:261Taxi
5986623152018-07-22 10:13:351Taxi
5987623552018-07-22 10:13:401Taxi
5988623352018-07-22 10:13:581Taxi
5989623452018-07-22 10:14:001Taxi
5990621742018-07-22 11:32:391Walk
5991621642018-07-22 11:32:421Walk
5992621842018-07-22 11:33:141Walk
5993620512018-07-22 14:43:501Metro
5994620312018-07-22 14:43:521Metro
5995620612018-07-22 14:44:041Metro
5996620412018-07-22 14:44:061Metro
5997620612018-07-22 16:28:250NULL
5998620512018-07-22 16:52:470NULL
5999621432018-07-25 10:37:511Bus
6000628222018-07-25 10:40:021Metro
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;