Define user and event data structure.