channels: continue event refactoring
channels: replace event_type, event_class with id for events