It all depends on the normalization.
However. For family members. If everyone has a set number, then you dont really ned a different table. But if even one person has a different number of family members, you need a separate table for that. Especially if people can share family members.
Currently your DB setup is not relational. You don't have foreign keys to allow for cross referencing.
You have a table for cars, and a line pointing to the user. But how do you look at the user table, and associate the car with it. You need a carId in both your user table, and your car table.
Are the family members other users. or are they just part of the program.
If they are actual other users, you family setup is completely wrong. All you would need in this case is
user_id | Related_to | relation_type
related_to would set who the person was related to, and relation_type would set what kind of relation. Then that would need it's own table where you have a list of brother, dat, cousin and so on.
If the family members are not actual players of the game, disregard this.
Anyways. If you rush your DB design, the game will never function properly. It is not something that can easily be changed. It is the foundation of your house, if the foundation is faulty, the house will fall.
Quote:
Originally Posted by Frico
Hi,
I have some new questions  I am now working to make the database with each Form. But I am now stuck on how to make some tables. Here I have a image about what relations and tables I already have. It's only a beginning:
Attachment 10214
- Well you have with a maffia website always times before you can do a crime again or the time you need to spend in jail. Well do you think it is usefull to put those times in a special table or just leave it in the big member table?
- For the Family table, you have members in the Family. Do you think it is necessary to make a new table for Family Members?
- Do you have any tips on how to make the big Member table smaller? Or do you have other suggestions please tell me!
I hope I'll get answer as quick as possible!
|