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

Set up Models on Back-end #1

Closed
Craig5117 opened this issue Mar 24, 2021 · 1 comment
Closed

Set up Models on Back-end #1

Craig5117 opened this issue Mar 24, 2021 · 1 comment
Assignees

Comments

@Craig5117
Copy link
Owner

PET

  • petSchema
  • username {String, required, unique, trim}
  • email {String, required, unique, match}
  • password {String, required, minlength: 8}
  • petType {String, required, trim}
  • image {String}
  • age {Number}
  • sex {String, required}
  • bio {string, required}
  • adoptable {boolean}
  • posts [{ref Post}]
  • friends [{ ref Pet}]
  • include a virtual for friendCount see logic at the bottom of user in Deep-Thoughts
  • see the logic in Deep-Thoughts for the password encryption logic

POST

  • postText {String, required, minlength 1, maxlength 10000}
  • createdAt {Date, default, get}
  • petUsername {String, required}
  • comments [commentSchema]
  • getters true

COMMENT

  • commentText {String, required, maxlength 3000}
  • petUsername {String, required}
  • createdAt {Date, default, get}
  • getters true
@Craig5117
Copy link
Owner Author

Great job Dylan!

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

No branches or pull requests

2 participants