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,826–3,850 of 9,738

entry_scan, page 154 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3826394722017-06-05 10:26:161Private Vehicle
3827394322017-06-05 10:26:181Private Vehicle
3828394522017-06-05 10:26:401Private Vehicle
3829394622017-06-05 10:26:431Private Vehicle
3830394422017-06-05 10:26:501Private Vehicle
3831399212017-06-05 10:50:081Metro
3832399312017-06-05 10:50:121Metro
3833377612017-06-06 09:06:031Metro
3834399912017-06-06 09:08:391Metro
3835400012017-06-06 10:15:381Metro
3836400112017-06-06 10:16:031Metro
3837400212017-06-06 10:58:141Walk
3838400312017-06-06 12:01:211Walk
3839398412017-06-06 12:48:381Metro
3840398312017-06-06 12:48:521Metro
3841398532017-06-06 12:58:431Walk
3842398312017-06-06 15:32:570NULL
3843398412017-06-06 15:54:300NULL
3844400532017-06-07 09:26:361Metro
3845400632017-06-07 09:26:461Metro
3846401012017-06-08 11:57:201Other
3847400912017-06-08 11:57:261Other
3848401322017-06-08 12:59:471Walk
3849401222017-06-08 12:59:511Walk
3850401522017-06-08 13:00:051Walk
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;