TimeInterval and ActivityType models and schema changes