-
Notifications
You must be signed in to change notification settings - Fork 1
Relational Diagram
Mücahit Erdoğan Ünlü edited this page Apr 25, 2024
·
3 revisions
CREATE TABLE Registered_User (
user_id VARCHAR(50),
username VARCHAR(50),
password VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL,
PRIMARY KEY(user_id)
);
CREATE TABLE Blocked_List(
user_id VARCHAR(50),
blocked_user_id VARCHAR(50) NOT NULL,
ForeignKey(user_id) REFERENCES Registered_User(user_id),
ForeignKey(blocked_user_id) REFERENCES Registered_User(user_id),
PRIMARY KEY(user_id, blocked_user_id)
);
CREATE TABLE Muted_List(
user_id VARCHAR(50),
muted_user_id VARCHAR(50) NOT NULL,
ForeignKey(user_id) REFERENCES Registered_User(user_id),
ForeignKey(muted_user_id) REFERENCES Registered_User(user_id),
PRIMARY KEY(user_id, muted_user_id)
);
CREATE TABLE Following_List(
user_id VARCHAR(50),
following_user_id VARCHAR(50) NOT NULL,
ForeignKey(user_id) REFERENCES Registered_User(user_id),
ForeignKey(following_user_id) REFERENCES Registered_User(user_id),
PRIMARY KEY(user_id, following_user_id)
);
CREATE TABLE Follower_List(
user_id VARCHAR(50),
follower_user_id VARCHAR(50) NOT NULL,
ForeignKey(user_id) REFERENCES Registered_User(user_id),
ForeignKey(follower_user_id) REFERENCES Registered_User(user_id),
PRIMARY KEY(user_id, follower_user_id)
);
CREATE TABLE Post(
post_id INT AUTO_INCREMENT,
author VARCHAR(50),
text VARCHAR(50) NOT NULL,
publication_date DATE NOT NULL,
edit_date DATE NOT NULL,
title VARCHAR(50) NOT NULL,
picture VARCHAR(50) NOT NULL,
comment_count INT NOT NULL,
like_count INT NOT NULL,
bookmark_count INT NOT NULL,
PRIMARY KEY(post_id),
ForeignKey(author) REFERENCES Registered_User(user_id)
);
CREATE TABLE Profile(
user_id VARCHAR(50),
biography VARCHAR(50) NOT NULL,
profile_picture VARCHAR(50) NOT NULL,
registration_date DATE NOT NULL,
PRIMARY KEY(user_id),
ForeignKey(user_id) REFERENCES Registered_User(user_id)
);
Turquiz App
- Implementation Phase 1
- Design
- Scenarios & Mockups
- Software Requirements Specification
- Forming the Team
- Lab Report #1
- Lab Report #2
- Lab Report #3
- Lab Report #4
- Lab Report #5
- Lab Report #6
- Lab Report #7
- Lab Report for Lab 9
- Lab Meeting #1
- Meeting #1
- Lab Meeting #2
- Meeting #2
- Project Plan Meeting
- Frontend Meeting #1
- Lab Meeting #3
- Meeting #3
- Meeting #4
- Lab Meeting #4
- Meeting #5
- Meeting #6
- Meeting #7
- Meeting #8
- User Scenario 1 - Explore and Register
- User Scenario 2 - Search for a Quiz & Create a Quiz
- User Scenario 3 - Take & Review a Quiz
- User Scenario 4 - Search Forum & Bookmark & Upvote & Answer
- User Scenario 5 - User Badges
- User Scenario Template
- User Stories