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 3,101–3,125 of 9,738

entry_scan, page 125 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3101333012016-12-30 11:47:061Walk
3102333212016-12-30 14:45:421Train
3103332522016-12-31 12:54:381Metro
3104332822016-12-31 12:54:461Metro
3105332722016-12-31 12:54:521Metro
3106332922016-12-31 12:54:581Metro
3107332822016-12-31 15:31:340NULL
3108332922016-12-31 15:51:340NULL
3109332722016-12-31 16:33:590NULL
3110332532016-12-31 16:41:140NULL
3111333922017-01-02 14:36:041Metro
3112325012017-01-05 09:37:171Private Vehicle
3113324812017-01-05 09:37:181Private Vehicle
3114324912017-01-05 09:37:241Private Vehicle
3115334112017-01-05 10:57:201Walk
3116338422017-01-06 10:25:381Metro
3117338322017-01-06 10:25:401Metro
3118332132017-01-06 10:47:091Metro
3119332032017-01-06 10:47:291Metro
3120333512017-01-07 09:18:401Bus
3121334022017-01-07 10:55:571Walk
3122338522017-01-07 11:55:461Metro
3123338722017-01-07 11:55:521Metro
3124338622017-01-07 11:55:561Metro
3125338842017-01-07 15:06:061Walk
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;