Added JPA model for events and records.