Skip to content

It is a database system designed for any dynamic blog website. Every user has an account, and by using the account he can do all the work(create a post, like, comment, reply, etc.) allowed by the administrator of the blog site. All of the user's full name, password, email, post, and other information can be stored in the database. Also, various …

Notifications You must be signed in to change notification settings

muskanmahajan37/Database-for-General-Blog-Website

 
 

Repository files navigation

Database-for-General-Blog-Website

Table of contents

Introduction

It is a database system designed for any dynamic blog website. Every user has an account, and by using the account he can do all the work(create a post, like, comment, reply, etc.) allowed by the administrator of the blog site. All of the user's full name, password, email, post, and other information can be stored in the database. Also, various information about posts, posts categories, comments, likes, replies can be stored in the database. This group project was built for an undergraduate academic course.

Features

  • User can post articles
  • They can like,comment,reply on the posts
  • Every user's account information is stored in the database
  • User related admin can view all the user's details in the database, update them, and if needed he can also delete user id and other information.
  • Post related admin can view all posts, category, rating, likes on a post.
  • He can also find out how much likes/ comments the nth most liked/commented post has
  • He can edit the post, also how many comments, rating each post has can be easily found.
  • He can find out which post has the maximum activity.
  • He can find out in which category the highest-rated posts are present
  • Comment and reply related admin can find the post title, post body, comment of that post with the reply.
  • He can view all replies, comments of each post
  • He can find all the replies after a specific date
  • There are total 9 tables/entities in the database
  • 85 useful and distinct queries are demonstrated supporting these features

Technologies

  • Microsoft SQL Server
  • Microsoft SQL Server Management Studio
  • SQL

Relational Schema

1.user_info(user_id(pk),username,password,email)

2.posts(post_id(pk),date,post_title,user_id(fk),post_category,post_body,post_comment_count,post_rating,post_like_count)

3.post_likes(post_like_id(pk), post_id(fk),user_id(fk))

4.comment_likes(comment_like_id(pk),post_id(fk),comment_id(pk),user_id(fk))

5.reply_likes(reply_like_id(pk),post_id(fk),comment_id(pk),Reply_Id(Pk),user_id(fk))

6.Ratings(Ratings_id(pk),user_id(fk),Post_id(fk))

7.Comment(comment_Id(pk),post_ID(fk),user_id(fk),comment_date,comment_content,comment_like_count)

8.Categories(Category_Ids(pk),Category Name,Category_description)

9.Reply(Reply_Id(PK),post_id(fk),comment_id(fk),user_id(fk),reply_content,reply_date,Reply_like_count)

Entity Relationship Diagram

Database Diagram

Demo Screenshots

Setup

Mircosoft SQL Server and Microsoft SQL Server Management Studio should be setup properly. Then the sql queries present int the sql files can be executed opening the sql files with Microsoft SQL Server Management Studio.

About

It is a database system designed for any dynamic blog website. Every user has an account, and by using the account he can do all the work(create a post, like, comment, reply, etc.) allowed by the administrator of the blog site. All of the user's full name, password, email, post, and other information can be stored in the database. Also, various …

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published