0% found this document useful (0 votes)
37 views

Blog DB Design

This document describes the table structure for a social media database including tables for users, posts, comments, tags, roles, and other related data with primary keys and indexes specified for each table.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Blog DB Design

This document describes the table structure for a social media database including tables for users, posts, comments, tags, roles, and other related data with primary keys and indexes specified for each table.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

comments

Id BIGINT(20)
commentText LONGTEXT
dateTime DATETIME
users
deleted BIT(1)
Id BIGINT(20)
modifiedDateTime DATETIME
aboutText VARCHAR(1000)
parent_id BIGINT(20)
bigAvatarLink VARCHAR(255)
post_id BIGINT(20)
email VARCHAR(50)
user_id BIGINT(20)
enabled BIT(1)
Indexes
password VARCHAR(80)

registrationDate DATETIME
smallAvatarLink VARCHAR(255) posts
username VARCHAR(50) Id BIGINT(20)
websiteLink VARCHAR(80) dateTime DATETIME
Indexes fullPostText LONGTEXT
hidden BIT(1)
shortTextPart LONGTEXT
title VARCHAR(250)
Indexes

post_ratings
persistent_logins
Id BIGINT(20)
username VARCHAR(64)
value SMALLINT(6)
series VARCHAR(64)
user_id BIGINT(20)
token VARCHAR(64)
post_id BIGINT(20)
comment_ratings last_used TIMESTAMP
Indexes
Id BIGINT(20) Indexes
value SMALLINT(6)
user_id BIGINT(20)
comment_id BIGINT(20)
Indexes
users_roles
user_id BIGINT(20)
role_id BIGINT(20)
Indexes

posts_tags tags
post_id BIGINT(20) Id BIGINT(20)
tag_id BIGINT(20) name VARCHAR(30)
Indexes Indexes
roles
Id BIGINT(20)

name VARCHAR(50)
Indexes

You might also like