-
Notifications
You must be signed in to change notification settings - Fork 2
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
Data models #4
base: main
Are you sure you want to change the base?
Data models #4
Conversation
@Albert-2 We only need models that are given in the link. I believe you have added the enums as models as well. We can specify enums in mongoose models. Look into it and update |
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.
Firstly, Great Job 🥳
Here are some changes:
- You have created all the schemas in the models folder. Kindly read the documentation to know the difference between schemas and models. Though used interchangeably, we are going to use it as specified in the docs.
- Add schema should be of named as
entity.schema.ts
where entity should be singular. - Make sure to declare entity collection type as well. Refer this
- Go through all the comments.
- Write a better PR, Refer this
Hey @SuhailAhmed2627 ....!! |
The above tasks are still pending. @Albert-2 |
hey @SuhailAhmed2627 |
Great, Just remove the unwanted models you have added |
hey @SuhailAhmed2627 |
Thank you so much @SuhailAhmed2627 |
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.
Few Changes:
- Go through all the comments
- Update the user schema according to the dbdiagram
- All schema declaration, collection, and type of collection should be singular
yarn.lock
Outdated
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.
Why is there a change in yarn.lock? Revert this
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.
hey @SuhailAhmed2627 |
yarn.lock
Outdated
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.
@SuhailAhmed2627 |
yarn.lock
Outdated
@@ -7547,4 +7547,4 @@ __metadata: | |||
resolution: "yocto-queue@npm:0.1.0" | |||
checksum: dceb44c28578b31641e13695d200d34ec4ab3966a5729814d5445b194933c096b7ced71494ce53a0e8820685d1d010df8b2422e5bf2cdea7e469d97ffbea306f | |||
languageName: node | |||
linkType: hard | |||
linkType: hard |
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.
Fully revert this file. It shows some whitespace changes
@Albert-2 Revert yarn.lock |
@SuhailAhmed2627 |
In github, file changes are showing a change. It's probably some whitespace change. Kindly revert it |
@SuhailAhmed2627 |
@Albert-2 Did you try deleting your yarn.lock, and downloading the yarn.lock from the main branch? |
@SuhailAhmed2627 |
@Albert-2 Try downloading, Copy-Pasting might have only led to the problem |
@SuhailAhmed2627 |
Great, I am approving this PR. Once @RaghavKhullar takes a look, then we are good to merge! |
hey @SuhailAhmed2627 |
hey @RaghavKhullar |
Short description of the Issue.
Add the data models for the database given here
Proposed Changes
The changes i.e. data models are added in models folder
Further comments