mysql - database normalization users and messages database -
i'm newbie databases , want create database have
- username varchar(16)
- membership status ( paid or free )
- message text (most or should use else?)
- messages counter user 'to count total number of messages user (probably unsigned int).
- catagory of message varchar(60)
- date posted date
now have layout database not sure how first , second , third normal forms. appreciated.
thanks
seems want user table:
userid, username, member_status
and message table:
userid, category, date, message
a category table:
category, description
you can total number of messages user query like:
select count(*) message userid = 'someuser'
so don't store that.
hope gets started. have fun...
Comments
Post a Comment