Skip to content
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

Addresed #69: Refactored and added crud ops to course model #143

Merged

Conversation

sumitst05
Copy link
Contributor

Description

Renamed student model to course, refactored and implemented CRUD to course model

Fixes

Fixed #69 as mentioned in the issue.

Checklist

  • Renamed student.js to course.js.
  • Refactored the course model.
  • Added CRUD ops to course

models/course.js Outdated
theoryHours: { type: Number, required: true },
tutorialHours: { type: Number, required: true },
practicalHours: { type: Number, required: true },
totalHours: { // virtual to return total hours based on th + tut + prac hrs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

models/course.js Outdated
evalScheme: { type: [Number], required: true },
};

// eslint-disable-next-line no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For CURD refer models/user.js
use filters for genric behaviour

@sumitst05 sumitst05 requested a review from Hitansh159 July 2, 2023 15:49
@Hitansh159 Hitansh159 merged commit 9efbd89 into tcet-opensource:development Jul 2, 2023
@sumitst05 sumitst05 deleted the 69-refactor-course-add-crud branch July 9, 2023 14:28
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.

2 participants