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

entry_scan, page 160 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3976414322017-06-30 14:32:201Metro
3977406212017-06-30 14:44:521Walk
3978415412017-07-01 09:22:521Bus
3979415512017-07-01 09:22:531Bus
3980415712017-07-01 09:23:011Bus
3981415612017-07-01 09:23:091Bus
3982404612017-07-01 11:11:181Taxi
3983404412017-07-01 11:11:221Taxi
3984404512017-07-01 11:11:431Taxi
3985415952017-07-01 12:41:211Walk
3986415852017-07-01 12:41:531Walk
3987415012017-07-01 12:57:251Metro
3988415312017-07-01 12:57:331Metro
3989415212017-07-01 12:57:371Metro
3990415112017-07-01 12:57:551Metro
3991416112017-07-01 15:31:211Metro
3992416012017-07-01 15:31:461Metro
3993416312017-07-01 15:31:491Metro
3994416212017-07-01 15:32:011Metro
3995363742017-07-02 09:58:191Bus
3996363842017-07-02 09:58:281Bus
3997364442017-07-02 09:58:391Bus
3998363942017-07-02 09:58:431Bus
3999364042017-07-02 09:58:521Bus
4000364742017-07-02 09:59:071Bus
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;