- Source:
Members
(inner, constant) UserSchema
A Schema object that defines the User model.
Properties:
Name | Type | Description |
---|---|---|
user_id |
string | An ID that is unique and will contain a prefix to identify how the user registered. So GOOGLE_ for google oauth, DISCORD_ for discord oauth and PASS_ for name and password. |
profile_pic |
string | To be used with Oauth. Stores the users profile picture from discord or google. |
fridge |
ObjectID | An objectID that references the fridge/pantry that the user owns. |
meal_plan |
array | An array of ObjectIDs that reference meals that the user has selected. |
- Source: