User
Documentation for the User database schema.
Fields
| Field | Data Type | Usage |
|---|---|---|
| companyId | ObjectId | Unique reference to company. |
| pageFav | Array | Stores the page fav data. |
| name | String | The name or title of the user. |
String | Primary email address. | |
| profilePhoto | String | Stores the profile photo data. |
| phone | String | Contact phone number. |
| password | String | Stores the password data. |
| isActive | Boolean | Active status flag. |
| isDisabled | Boolean | Stores the is disabled data. |
| role | ObjectId | Stores the role data. |
| isEmailVerified | Boolean | Primary email address. |
| isPhoneVerified | Boolean | Contact phone number. |
| branchId | ObjectId | Unique reference to branch. |
| otp | String | Stores the otp data. |
| otpCode | String | Stores the otp code data. |
| expired | Boolean | Stores the expired data. |
| expiresIn | Date | Stores the expires in data. |
| isDeleted | Boolean | Stores the is deleted data. |
| status | Boolean | Timestamp/Date for status. |
| deletedBy | ObjectId | Stores the deleted by data. |
| deletedTime | Date | Timestamp/Date for deletedTime. |
| canViewAllSalaryProcesses | Boolean | Stores the can view all salary processes data. |
| accessibleBranches | [ObjectId] | Stores the accessible branches data. |
| hasAccessToAllBranches | Boolean | Stores the has access to all branches data. |