I am trying to create a database table for my game, and would like to see what is the best approach.
I have lots of monsters, each monster has number of attacks, monsters do not necessarily have the same attacks.
Each monster has different hp, mp and other stats.
Each monster attack has power and speed and other stats.
Can anyone please help me design this table?
I am using MySQL for my database.
Tables required: MONSTER, MONSTER_ATTACKS.
The important parts: MONSTER has a primary key of id, MONSTER_ATTACKS has a foreign key of monster_id that refers back to MONSTER’s id.