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 9,176–9,200 of 9,738

entry_scan, page 368 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9176938222019-11-14 14:09:411Taxi
9177938022019-11-15 10:55:111Metro
9178937922019-11-15 10:55:351Metro
9179941312019-11-15 15:26:201Private Vehicle
9180940642019-11-16 09:34:421Taxi
9181940442019-11-16 09:34:501Taxi
9182940542019-11-16 09:35:131Taxi
9183940742019-11-16 09:35:221Taxi
9184936512019-11-16 12:59:261Taxi
9185936312019-11-16 12:59:481Taxi
9186941542019-11-16 13:53:121Walk
9187941642019-11-16 13:53:221Walk
9188942042019-11-17 09:59:291Other
9189941942019-11-17 10:00:151Other
9190940822019-11-17 11:38:261Metro
9191940922019-11-17 11:38:521Metro
9192918112019-11-17 14:16:321Other
9193918012019-11-17 14:16:451Other
9194940312019-11-18 13:34:441Walk
9195942512019-11-19 09:58:321Train
9196942412019-11-19 09:59:091Train
9197942232019-11-19 10:08:111Walk
9198942132019-11-19 10:08:351Walk
9199934322019-11-19 13:31:021Metro
9200934422019-11-19 13:31:051Metro
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;