How should I setup my mySQL tables for this simple php points system?
问题 Hello I am trying to figure out the best way to setup my two mysql tables for a simple points system? What I have: 1 - users table with id (unique),name,email,etc 1 - points table with id (auto incrementing),user_id (corresponds with id field in user table), points Currently I am just writing to the points table and letting the id field auto increment... and setting the user_id field and points fields with php in the query. Is this the "proper" way to set this up? Where the id from the user