Create Contacts table in the database
ixahmedxi opened this issue · comments
The contacts table will act as a repository for the user to collect contacts to professors and other staff members or so and that way they can easily add them to a module to have an easy way of contacting a person that has something to do with a given module.
The table in the database will sit at the same hierarchial level as a module (top level) and will have rows of different contacts that are liked to a user or an organisation.
The columns that should be in the table are as follows:
-
Id (UUID unique)
-
userId (this will be the way we link a contact to a user from clerk, this is optional because a contact can be linked to an organisation instead)
-
orgId (this is when the userId is null)
-
Name (the name of the contact)
-
Role (either a professor, staff, or other)
-
Office location (optional)
-
Open hours (optional)
-
Phone number (optional)
-
Email (optional)
-
Modules (optional) linked to a module's id