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 2,276–2,300 of 9,738

entry_scan, page 92 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2276241922016-06-26 12:03:001Bus
2277241122016-06-27 12:05:571Private Vehicle
2278241422016-06-27 12:06:281Private Vehicle
2279241222016-06-27 12:06:291Private Vehicle
2280241322016-06-27 12:06:341Private Vehicle
2281238612016-06-28 12:57:331Metro
2282236312016-06-29 10:04:131Metro
2283236312016-06-29 11:47:400NULL
2284242332016-06-29 13:14:351Taxi
2285239022016-06-29 14:11:391Walk
2286243122016-06-30 13:47:321Metro
2287243022016-06-30 13:47:351Metro
2288242922016-06-30 13:47:501Metro
2289243212016-07-01 12:04:591Bus
2290243312016-07-01 12:05:371Bus
2291243412016-07-01 12:05:401Bus
2292243512016-07-01 12:05:411Bus
2293239722016-07-01 12:58:241Metro
2294189212016-07-01 13:42:381Bus
2295189312016-07-01 13:42:441Bus
2296189412016-07-01 13:42:581Bus
2297190012016-07-01 13:43:101Bus
2298189612016-07-01 13:43:181Bus
2299190212016-07-01 13:43:181Bus
2300189512016-07-01 13:43:201Bus
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;