I have two tables like:
-- users
+----+--------+---------------------+----------+--------------------+
| id | name | email | password | cookie |
+----+--------+---------------------+----------+--------------------+
-- user_detail
+---------+-----+-------------------+----------------+
| user_id | age | about | birthday |
+---------+-----+-------------------+----------------+
I need to make a relation between users(id)
and user_detail(user_id)
columns. Now I want to know, should I open user_detail
table and create a relation on the user_id
column of it (which refers to users(id)
) or vice versa?