So I'm putting to get some tables from form input and from session data. It's kind of going like this
... so I have around six tables which are all based around that theme. The specific letter_id increment and then the key being the user_id.
... I usually access them by their user_id
... Is it bad design to have all of my tables accessed by a user_id key ? I don't really see anyone else doing it that way ?
Also, I might want to make a blog table with more than one entry per user_id. Any suggestions on what I can do here ? I think maybe I'm not thinking about the overall design issues here ?
Code:
LETTER_TABLE:
LETTER_ID LETTER_NAME LETTER_TEXT USER_ID
(auto_increment) (KEY)
... I usually access them by their user_id
Code:
INSERT INTO LETTER_TABLE (letter_name, letter_text)
VALUES ( letter_name, letter_text, user_id )
Also, I might want to make a blog table with more than one entry per user_id. Any suggestions on what I can do here ? I think maybe I'm not thinking about the overall design issues here ?