daccotta-org / daccotta

A social network for movies.
https://app.daccotta.com
MIT License
75 stars 20 forks source link

Issues in usermodel.ts #111

Open BaibhavTiwari opened 2 hours ago

BaibhavTiwari commented 2 hours ago

The current implementation of the User model has several issues. Below is a breakdown of the identified problems:

1. Inconsistent Naming Conventions

2. Potential Redundancy in _id Fields

3. Missing Validations for Certain Fields

4. No Password Field

5. Type for friends and friendRequests Could Be More Specific

6. Deprecated or Unclear Field: directorsold

7. No Indexes on Frequently Queried Fields

8. Unclear Use of actor Field

9. Type for MovieInList

10. isPublic Should Have a Default Value

11. Subdocument Arrays Should Validate Contents

github-actions[bot] commented 2 hours ago

👋 Thank you @BaibhavTiwari for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!