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 am inclined to prefer to have only one User class and put friends as a vector, but this would be a bad solution because it is inconsistent with the DB ?