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,901–5,925 of 9,738

entry_scan, page 237 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5901596742018-07-17 09:53:331Other
5902597742018-07-17 09:53:371Other
5903596842018-07-17 09:53:391Other
5904598142018-07-17 09:53:401Other
5905597442018-07-17 09:53:471Other
5906597942018-07-17 09:53:491Other
5907597142018-07-17 09:53:561Other
5908596942018-07-17 09:54:101Other
5909598342018-07-17 09:54:131Other
5910598042018-07-17 09:54:351Other
5911597642018-07-17 09:54:511Other
5912597842018-07-17 09:54:551Other
5913598442018-07-17 09:55:071Other
5914599942018-07-17 09:55:101Other
5915600942018-07-17 09:55:111Other
5916600142018-07-17 09:55:201Other
5917601342018-07-17 09:55:271Other
5918598242018-07-17 09:55:351Other
5919597542018-07-17 09:55:401Other
5920598642018-07-17 09:55:491Other
5921599142018-07-17 09:56:031Other
5922598742018-07-17 09:56:251Other
5923601442018-07-17 09:56:251Other
5924600642018-07-17 09:56:311Other
5925599342018-07-17 09:56:521Other
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;