4
What is the best way to design Classes from the Database schema below:
Usuario(id INTEGER PK, desc TEXT);
Amigo(idA INTEGER, idB INTEGER, PK(idA,idB), FK(idA) REFERENCES Usuario(id));
This means that a user has 0 or more friends, when designing the classes in this case, I’m inclined to prefer having only one User class and putting friends as a vector, but this would be a bad solution because it is inconsistent with the BD?