I am trying to make a forum which has users who create topics in various categories. Other users can post replies
these are my tables below
categories
id
category_title
category_description
last_post_date
last_user_posted
posts
id
category_id
topic_id
post_creator
post_content
post_date
topics
id
category_id
topic_title
topic_creator
topic_last_user
topic_date
topic_reply_date
topic_views
users
id
username
password
email
forum_notification
Im having a problem creating a uml class diagram for my forum but im kind of confused i can up with one diagram below for users but i do not know how i can create the rest
┌─────────────────────────┬
│ Users │
├─────────────────────────┬
|username: String |
|password: String |
├─────────────────────────┼
|+logIn() |
|+logOut() |
├─────────────────────────┼
Best Answer
First of all you should know that you need to do some more "Behavioral Diagrams" that show what should happen on the system, to give a deeper understand about how to design the "Structure Diagrams" which describe the system more technically if I should say. Example of behavioral diagrams are Use Case diagrams and Sequence diagrams.
Then we have to go through your question, "Class Diagram", in brief
As an example
On posts class you will keep working by linking that Class with Categories and topics classes and so on. beer always in mind that you should think about the relation between all your entities.
Good luck.