User

User model represent the superset of all types of users interacting with the platform.

Fields

name

Type: string
Description: Name of the user

email

Type: string
Description: email id of the user (for logging in)

passwordHash

Type: string
Description: hashed password of the user

role

Type: string
Options: ['APIUSER', 'MANAGER', 'ADMIN']
Defaukt: APIUSER
Description: Role of the user

prefLang

Type: string
Options: ['ENGLISH', 'SPANISH', 'FRENCH', 'PORTUGUESE']
Description: Language preffered by the user

status

Type: string
Options: ['ACTIVE', 'INACTIVE']
Description: Status of user account

apiKey

Type: string
Description: API Key for API User

createdBy

Type: objectId
Description: Id of the user that created this user

createdAt

Type: timestamp
Description: Timestamp of creation

updatedAt

Type: timestamp
Description: Timestamp of last update