0..*
Friend
1
UserID (key)
0..*
FriendID(key)
1
UserID1
UserID2
Date
1
Password
Email Address
FName
LName
DOB
Age
Location
Weight
Height
Ftiness Goals
Event
EventID(key)
CreatorID
Event title
Date
Start time
End time
Location
createUser(userID):User setPassword() changePassword setEmail();; changeEmail setFName setLName getEmail() setHeight(); setFitnessGoals(); 0..*
Post
CreateEvent(title,date,starttime,endtime, loation); getUserID(); getEventTitle(); getEventDate(); getEventStartTime(); getEventEndTime(); getEventLocation(); 0..*
1
PostID(key)
AuthorID
Date
Time
Comments
Number of congrats
Photo
Video
1
Event-join
1
1
EventJoinID(key)
UserID
EventID
createEventJoinID();
0..*
0..*
CreatePostID(); getUserID; getDate(); getTime(); Source
SourceID(ke)
UserID
1
getUserID(); getEmailAddress(); 0..*
1
Dairy Entries
EntryId(key)
Name
Date
1..*
CreateEntry(); getEntryID(); setDate(); updateEntry(); removeEntry(); setEntryName(); 1..*
Fitness entry
Start Time
Duratoin
Estimate number of calories burnt
Map data
Distance
Pace/speed getStartTime(); getDuration() getNumberOfCaloriesBurnt(); getMapData();
Measurement entry
Meal entry
Value of measurement
Unt of measurement
Type of Meal
Calories consumed
getValueOfMeasurement(); getUnitOfMeasurement(); getTypeOfMeal(); getcaloriesConsumed(); User
Friendship
UserID
UserFriendID
Date
1
0..*
getUserFriendID(); getEstablishedDate(); Respond Post
RespondPostID
PosterID
Commenter ID
NumberOfCongrats
Date
Time
1..*
getPorsterID(); getCommenterID(); getNumberOfCongrats();
1
UserID
First Name
Last Name
Age
Gender
DOB
Password
Date of Creation
1
Location
Weight
Height
Fitness Goals
Picture
Event
createAccount(); setFirstName(); setLastName(); setPassword(); setEmail(); setHeight(); getFirstName(); getLastName(); getPassword(); getEmail(); getHeight();
0..*
1..*
EventID
CreatorID
Date
Time
Location
Description
createEvent(); getCreatorID(); getEventDate();
getEventTime();