Question: Applying Peter Chen s Notation to Your Schema Here s how the ERD would look based on your schema: Entities: Users: Attributes - user _
Applying Peter Chens Notation to Your Schema
Heres how the ERD would look based on your schema:
Entities:
Users: Attributes userid PK firstname, lastname, password, role, department, club, email.Clubs: Attributes clubid PK clubname, description, createddate.Memberships: Attributes membershipid PK userid FK clubid FK joindate.Events: Attributes eventid PK eventname, description, date, clubid FKVotes: Attributes voteid PK userid FK clubid FK candidateid FK votedate.Message: Attributes messageid PK senderid FK receiverid FK content, sentdate.
Relationships:
Users to Memberships: A onetomany relationship, as a user can belong to multiple clubs.Clubs to Memberships: A onetomany relationship, as a club can have multiple users.Clubs to Events: A onetomany relationship, as a club can organize multiple events.Users to Votes: A onetomany relationship, as a user can vote for multiple candidates within a club.Clubs to Votes: A onetomany relationship, as a club can have multiple votes.Users to Messages: A manytomany relationship, as users can send messages to each other.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
