Database
User

User

Documentation for the User database schema.

Fields

FieldData TypeUsage
companyIdObjectIdUnique reference to company.
pageFavArrayStores the page fav data.
nameStringThe name or title of the user.
emailStringPrimary email address.
profilePhotoStringStores the profile photo data.
phoneStringContact phone number.
passwordStringStores the password data.
isActiveBooleanActive status flag.
isDisabledBooleanStores the is disabled data.
roleObjectIdStores the role data.
isEmailVerifiedBooleanPrimary email address.
isPhoneVerifiedBooleanContact phone number.
branchIdObjectIdUnique reference to branch.
otpStringStores the otp data.
otpCodeStringStores the otp code data.
expiredBooleanStores the expired data.
expiresInDateStores the expires in data.
isDeletedBooleanStores the is deleted data.
statusBooleanTimestamp/Date for status.
deletedByObjectIdStores the deleted by data.
deletedTimeDateTimestamp/Date for deletedTime.
canViewAllSalaryProcessesBooleanStores the can view all salary processes data.
accessibleBranches[ObjectId]Stores the accessible branches data.
hasAccessToAllBranchesBooleanStores the has access to all branches data.