Blog Management System
Blog Management System
User Table:
user_id (Primary Key)
username
password (hashed and salted)
email
role_id (Foreign Key referencing Role Table)
Role Table:
role_id (Primary Key)
role_name (e.g., Admin, Author, Reader)
Author Table:
author_id (Primary Key)
user_id (Foreign Key referencing User Table)
bio
Category Table:
category_id (Primary Key)
category_name
Post Table:
post_id (Primary Key)
title
content
author_id (Foreign Key referencing Author Table)
category_id (Foreign Key referencing Category Table)
publish_date
status (e.g., draft, published)
Comment Table:
comment_id (Primary Key)
user_id (Foreign Key referencing User Table)
post_id (Foreign Key referencing Post Table)
comment_date
comment_text