Skip to content

Conversation

@PamudaUposath
Copy link
Collaborator

I have re-created the README file for setting up this project for development.

Copy link

Copilot AI left a 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[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants