views:

210

answers:

2

I'm building the next Facebook!! No, kidding.

I'm building a simple site to help me learn. It will allow users to log in with an email and password.

There will be other information collected from the user that is pertinent to the sites functions.

Using the supplied Kohana Auth module, should I store the separate data in another table?

Example:

The 'users' table has these rows... id, username, email, password, logins, last_login.

Suppose I want to store these for each user in addition... location_id, photo, favorite_color, bio

Should I create another table or just extend this table? How would you do this? Thanks!!

A: 

You could create another one table called user_details where store the user_id and additional fields you need.

franzose
I did something like this. It works great.
brennanag
enjoy! :) I made a multilingual project in such a way.
franzose
A: 

Just add the details to the user table and extend the Model_Auth_User class.

Mathijs
I like this idea, but I don't understand enough about the underpinnings of how Kohana works to want to change the Auth system's model.
brennanag