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

Assets & Employees should be linked #5

Closed
LiamTownsley2 opened this issue Sep 20, 2023 · 0 comments · Fixed by #58
Closed

Assets & Employees should be linked #5

LiamTownsley2 opened this issue Sep 20, 2023 · 0 comments · Fixed by #58
Labels
enhancement New feature or request

Comments

@LiamTownsley2
Copy link
Collaborator

Description

The Assets Database Type and the Employee Database type are linked. This is a hard link for the Assets type as it has a REQUIRED field for the Employee's User ID. This ensures that an employee can manage multiple assets at the same time.

MongoDB also has nice support for searching by certain fields meaning that all of the Assets an employee is responsible for can be grabbed quite easily.

Scope

This issue will be complete once you can get the Employee information through the Assets object. I assume this will be done through a .getEmployee() function or something of similar nature.

The information should also be grabbable via the Employee on a .getAssets() function and through a completely independent database function getAssetsByEmployee().

Notes

Further reading into how to do a View Collection (similar to an SQL JOIN statement.):
https://www.mongodb.com/docs/manual/core/views/join-collections-with-view/

@LiamTownsley2 LiamTownsley2 added the enhancement New feature or request label Sep 20, 2023
@LiamTownsley2 LiamTownsley2 added this to the 4 Week Check-In milestone Sep 25, 2023
LiamTownsley2 added a commit that referenced this issue Nov 14, 2023
Resolves #57
Resolves #55
Resolves #54
Resolves #41
Resolves #40
Resolves #39
Resolves #37
Resolves #35
Resolves #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant