opencodeiiita / Productivity-Tracker

6 stars 45 forks source link

Create Task schema #63 #68

Closed medhatiwari closed 3 years ago

medhatiwari commented 3 years ago

Issue: 63

Short description of what this resolves:

Added Task Schema with the required fields mentioned in this issue

Changes proposed in this pull request and/or Screenshots of changes:

-

-

Resolves #63

opencode-bot commented 3 years ago

Hey @medhatiwari

Thanks for opening this PR :rocket:. Mentor will review your PR soon and till then, keep contributing and stay calm.

Thanks for contributing to OpenCode ✨✨!

untrulynoxiusmj commented 3 years ago

_id field for a mongodb Document can be used as the id created_at and updated_at fields are automatically generated by setting timestamps:true user_id can also be modified Please refer https://github.com/opencodeiiita/Productivity-Tracker/pull/65

untrulynoxiusmj commented 3 years ago

@medhatiwari you can remove id field from the schema, MongoDB will generate _id by default

medhatiwari commented 3 years ago

@medhatiwari you can remove id field from the schema, MongoDB will generate _id by default

done sir

untrulynoxiusmj commented 3 years ago

@medhatiwari required:true in line 17 is giving errors. Please check that Also times will not be a required field, you can remove that required:true

medhatiwari commented 3 years ago

@medhatiwari required:true in line 17 is giving errors. Please check that Also times will not be a required field, you can remove that required:true

removed it, sir

opencode-bot commented 3 years ago

Hey @medhatiwari

Your PR has been merged :partying_face::partying_face: and you have earned 10 points.

Thanks for contributing to OpenCode ✨✨!