Class diagramme problem

Hello everyone :slight_smile:

During my project study end I found a problem more precisely in class diagram

Here’s the problem I have:

an electronic component belongs to one and only one category.

each category has specific properties that are different from other classes

you can find a property in several categories

each component has specific values ​​for these properties

I work for several days and whenever there is a problem. following two proposals that I worked on it

someone had had advice to give me thank you in advance :slight_smile:

class2.png
class1.png