david_kw
01-11-2007, 07:45 PM
Hello there,
I had a question and was hoping someone could help me brainstorm on how this could be done.
I have a situation where I have lots of users. I have a table that saves various information like the last time they logged in, the date they created their account, etc.
Each of these users also has data associated with them that would need a table. For example, if each user had their own ToDo list.
So my question is what is the best way to store that in a database? My first thought (coming from my programming background) is that I would add a column called todolist to the first table and that column would have a full nested table inside each cell that would store the list of ToDo items along with their priority and completion status, etc.
But I don't see any way to do that in mysql. So my second thought is to create table for each individual user called todolist_username.
Unfortunately that would give me potentially thousands of tables in my database. Is that the right way to do it or is there another option I'm unaware of?
david_kw
I had a question and was hoping someone could help me brainstorm on how this could be done.
I have a situation where I have lots of users. I have a table that saves various information like the last time they logged in, the date they created their account, etc.
Each of these users also has data associated with them that would need a table. For example, if each user had their own ToDo list.
So my question is what is the best way to store that in a database? My first thought (coming from my programming background) is that I would add a column called todolist to the first table and that column would have a full nested table inside each cell that would store the list of ToDo items along with their priority and completion status, etc.
But I don't see any way to do that in mysql. So my second thought is to create table for each individual user called todolist_username.
Unfortunately that would give me potentially thousands of tables in my database. Is that the right way to do it or is there another option I'm unaware of?
david_kw