Advisor10.com
1- Auth
1) Registration (/join)
provides [name, type, email, phone_number, password, password_confirmation]
Valid
true
false
back with errors
redirect to /set-profile
2) Set Profile (/set-profile) // checks if user has profile first
student
doctor
advertiser
provide: [country_id, governorate_id, schoole_id, college_id, department_id, grade_level_id
provide: [country_id, governorate_id, school_id, college_id, department_id]
provide: [country_id, governorate_id]
valid
true
false
- create user profile
- redirect to /
back with errors
2) Login (/login)
Provide: [email address, password)
valid data
Tables
users
- name
- type [student, doctor, advertiser]
- phone_number
- password
- avatar_path
- can_create_groups
profiles
- user_id
- country_id null
- governorate_id null
- university_id null
- college_id null
- department_id null
- grade_level_id null
- advertiser_category_id null
true
false
Login user & Redirect to /
Back with errors
3- Reset password (/password/forget)
provide email
email exists
Yes > send reset email
No > back with errors
2- Search (/search)
Provide one or more (country_id, governorate_id, university_id, college_id, type, department_id, grade_level_id)
advertisers_categories
- name
- image_path
user1
user2
Advisor10.com
Auth
1- Registeration
2- Home /
Email Verified
No
Yes
Redirect to email/verify
Profile Completed
TRue
False
Show Home Pagte
Redirect to set-profile page
3- Advices
Request an advice from a user with a body
Notify Advisor
Rejected
- Notify Sender
- Mark as rejected
Approved
- Notify sender WITH BODY