code: func NewEventRepository(db *gorm.DB) *GormEventRepository {
  	return &GormEventRepository{
  		db:               db,
  		workItemRepo:     workitem.NewWorkItemRepository(db),
  		wiRevisionRepo:   workitem.NewRevisionRepository(db),
  		workItemTypeRepo: workitem.NewWorkItemTypeRepository(db),
  		identityRepo:     account.NewIdentityRepository(db),
  	}
  }
docs: // NewEventRepository creates a work item event repository based on gorm