Design a database for a Social Media Website. • You only need to design the part of the database which manages Users, Friend Requests, and Stories. A user can send friend requests to other users. Once accepted, they become friends. The system should keep track of all current friend relationships (meaning, the system knows which two users are friends as of now). • A user can see all the current/historical friend requests he/she ever sent or received. The user can either accept or reject requests he/she received. The system should store when a friend request was created / accepted or rejected. • A user can post any text as Stories. To make it simple, assume: o A Story only contains a piece of text. o Users can only post Stories on their own homepage. The posted Story can then be seen by anyone who visits the user's homepage. A user can like any Story posted by any user (including Stories posted by himself/herself). Draw a conceptual schema by finishing the following design (you don't need to add any more Entities besides the three given Entities): ?22 Please design the relationship(s) between User and FriendRequest s a friend of User FriendRequest post Story Convert the schema you designed in (1) to a relational schema.
Design a database for a Social Media Website. • You only need to design the part of the database which manages Users, Friend Requests, and Stories. A user can send friend requests to other users. Once accepted, they become friends. The system should keep track of all current friend relationships (meaning, the system knows which two users are friends as of now). • A user can see all the current/historical friend requests he/she ever sent or received. The user can either accept or reject requests he/she received. The system should store when a friend request was created / accepted or rejected. • A user can post any text as Stories. To make it simple, assume: o A Story only contains a piece of text. o Users can only post Stories on their own homepage. The posted Story can then be seen by anyone who visits the user's homepage. A user can like any Story posted by any user (including Stories posted by himself/herself). Draw a conceptual schema by finishing the following design (you don't need to add any more Entities besides the three given Entities): ?22 Please design the relationship(s) between User and FriendRequest s a friend of User FriendRequest post Story Convert the schema you designed in (1) to a relational schema.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Need help drawing a conceptual schema and a relational schema (Data bases)
Expert Solution
Step 1
We were given to design a database for social media website.Some of the conditions to represent relationships between user and FriendRequest .A user and is a friend of has one-to-one relationship.For user,post and story the relation is one-to-N.The empty condition for the right side of user is "can like".The relation for user,can like and story is N-to-N relation.
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY