Recreated the Readme File#79
Open
PamudaUposath wants to merge 7 commits into
Open
Conversation
I have re-created the README file for setting up this project for development.
There was a problem hiding this comment.
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[]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have re-created the README file for setting up this project for development.