-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ER modeling #32
ER modeling #32
Changes from 4 commits
5ca8283
545c277
5410ca3
79cb467
f779c9b
ed3a11a
a82e804
8b3a58b
922e6f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# This diagram represents the ER relationship diagram among the entities below | ||
|
||
# In order to understand the cardinality, please refer to the mermaid documentation | ||
|
||
# https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram | ||
|
||
```mermaid | ||
erDiagram | ||
USER ||--|| STUDENT : is | ||
USER ||--|| MENTOR : is | ||
USER ||--|| ADMIN : is | ||
USER ||--|| SIGNIN : has | ||
STUDENT ||--o{ EVENTS : posts | ||
STUDENT ||--|| CALENDAR : has | ||
MENTOR ||--|| CALENDAR : has | ||
MENTOR ||--|{ WEEKDAYS : tutors | ||
ADMIN ||--o{ EVENTS : posts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first section represents Entity relationships and each constitutes its own table. Do you mean to have a Password entity? or if you are referring to string password, let me know the table so I can add it@kirubeltadesse There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand. clicked at the wrong place by mistake :) |
||
CALENDAR ||--|{ WEEKDAYS: has | ||
USER { | ||
int user_id PK | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The datatype of user_id seems to be inconsistent. It is an int datatype here but on STUDENT, MENTOR and SIGNIN it seems to be of string data type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dinaolmelak this is closed PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha, I have added these changes to my pull request #44 |
||
string fullName | ||
string Jnumber | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we set this to camel case naming convention? (i.e string jNumber) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also set the data type of jNumber to |
||
string email | ||
string role | ||
string userName | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I mean add the password here. Next to the |
||
} | ||
STUDENT { | ||
int student_id PK | ||
string user_id FK | ||
} | ||
MENTOR { | ||
int mentor_id PK | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The data type of |
||
string user_id FK | ||
string course | ||
BAbate marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
ADMIN { | ||
int admin_id PK | ||
string user_id FK | ||
} | ||
SIGNIN { | ||
kirubeltadesse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
int signIn_id PK | ||
string user_id FK | ||
string userName | ||
string password | ||
} | ||
EVENTS { | ||
int events_id PK | ||
string mentor_id FK | ||
string student_id FK | ||
dateFormat startDate | ||
dateFormat endDate | ||
} | ||
CALENDAR { | ||
kirubeltadesse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
int calendar_id PK | ||
int weekday_id FK | ||
} | ||
WEEKDAYS { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
int weekday_id PK | ||
int mentor_id FK | ||
dateFormat startDate | ||
dateFormat endDate | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a title and make the rest of the information a paragraph: for better formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay good