Please enable JavaScript.
Coggle requires JavaScript to display documents.
onboardUser - Coggle Diagram
onboardUser
Process Sheet Data
If Mob \= 0
Update User
(schoolId
userType
userId
userTypeId
gradeName
boardName
password
otp
subjectName userMongoId
userMobile
firstName
lastName
userGrade
userBoard
email)
else
registerUser
(name,
mobileNo,
schoolId,
userType,
gradeName,
boardName,
password,
otp,
subjectName,
unlockPackages)
MongoDB DATABASE :
userType = "teacher"
insertDict
=
{username,
email,
firstName,
lastName,
password,
repeatPassword,
phone,
userType,
accountStatus,
schoolId,
gradeName,
subjectName,
boardName,
teacherCode,
qualification}
else
insertDict
=
{username,
email,
firstName,
lastName,
password,
repeatPassword,
phone,
userType,
accountStatus,
schoolId,
gradeName,
boardName}
MySQL DATABASAE
:red_flag:if : password == ' ' and otp == ' '
( device_id,
user_token,
lang_pref,
editor_lang,
school_id,
grade_name,
grade_id,
board_name,
user_type,
user_type_id,
first_name,
last_name,
country_code,
user_mobile,
created_at,
sync_at,
updated_at,
mongo_id)
:red_flag:if password != ' ' and otp != ' '
( device_id,
user_token,
lang_pref,
editor_lang,
school_id,
grade_name,
grade_id,
board_name,
user_type,
user_type_id,
first_name,
last_name,
country_code,
user_mobile,
created_at,
sync_at,
updated_at,
password,
user_otp,
mongo_id)
:red_flag:if password != ' ' and otp == ' '
( device_id,
user_token,
lang_pref,
editor_lang,
school_id,
grade_name,
grade_id,
board_name,
user_type,
user_type_id,
first_name,
last_name,
country_code,
user_mobile,
created_at,
sync_at,
updated_at,
password,
mongo_id)
:red_flag:if password == ' ' and otp != ' '
( device_id,
user_token,
lang_pref,
editor_lang,
school_id,
grade_name,
grade_id,
board_name,
user_type,
user_type_id,
first_name,
last_name,
country_code,
user_mobile,
created_at,
sync_at,
updated_at,
user_otp,
mongo_id)