-
Notifications
You must be signed in to change notification settings - Fork 3
Recreated the Readme File #79
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
base: development
Are you sure you want to change the base?
Conversation
I have re-created the README file for setting up this project for development.
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.
Pull Request Overview
This PR re-creates the README file while also refactoring the backend code to align with the updated Prisma schema. Key changes include renaming model identifiers and adjusting repository queries to use new field names, updating frontend components to use the revised data shape and role constants, and revising migration scripts for the redesigned schema.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| server/src/repositories/repositories.ts | Updated repository functions to use new field names (e.g., userID instead of id), with corresponding changes in query and update parameters. |
| server/src/components/mentorDashboard.tsx | Updated user state type and mapping to reflect the new field names and structure. |
| server/src/components/calendar.tsx | Revised role checks to use uppercase constants and modified URL logic accordingly. |
| server/src/app/auth/login/route.ts | Adjusted password field lookup and user identifier reference to match the new schema. |
| server/src/app/api/users/route.ts & server/src/app/api/activity/route.ts | Modified API endpoints to fetch and create data using updated function names and field mappings. |
| server/prisma/seed.mjs, server/prisma/schema.prisma, and migration files | Updated schema definitions, field names, and migration scripts to support the redesigned data model. |
Comments suppressed due to low confidence (1)
server/prisma/schema.prisma:38
- [nitpick] The field 'review' in the Mentor model holds multiple Review records; renaming it to 'reviews' would better reflect its plural nature and improve clarity.
review Review[]
I have re-created the README file for setting up this project for development.