This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
trucks-for-you-revised [2018/07/20 04:58] hari |
trucks-for-you-revised [2018/07/25 10:19] hari [Add a driver] |
||
---|---|---|---|
Line 93: | Line 93: | ||
===== Driver use cases ===== | ===== Driver use cases ===== | ||
- | ===== Login ===== | + | ==== Login ==== |
- During induction, a driver's phone number and name are already created by the admin. | - During induction, a driver's phone number and name are already created by the admin. | ||
- The driver enters phone number. | - The driver enters phone number. | ||
Line 146: | Line 146: | ||
===== Admin use cases ===== | ===== Admin use cases ===== | ||
+ | |||
+ | ==== Login ==== | ||
+ | |||
+ | - Admin can log in using either phone number of email. | ||
+ | - A verification is sent based on the entry of identity. In both cases, an access token is generated. | ||
+ | - An OTP is sent if the identity is phone number. | ||
+ | - An email with verification link is sent if the identity is email. | ||
+ | - The OTP and verification token in the request are checked against the ones generated by the system. | ||
+ | - For a mismatch, authentication is denied. | ||
+ | - The admin is taken to the home page. | ||
==== Add a truck ==== | ==== Add a truck ==== | ||
Line 164: | Line 174: | ||
- The admin can add a new truck type by its name. | - The admin can add a new truck type by its name. | ||
+ | ==== Add a driver ==== | ||
+ | |||
+ | The admin adds new drivers to the system when they are hired. The following details are added. | ||
+ | - Name | ||
+ | - License number | ||
+ | - License expiry date | ||
+ | - Photo | ||
+ | - License photo | ||
==== Hide truck ==== | ==== Hide truck ==== | ||
The admin can hide a particular truck if it is currently not available for a trip online. | The admin can hide a particular truck if it is currently not available for a trip online. | ||
Line 172: | Line 190: | ||
==== Hide city ==== | ==== Hide city ==== | ||
The admin can hide a city if it is currently not serviced | The admin can hide a city if it is currently not serviced | ||
+ | |||
+ | |||
+ | ==== Hide driver ==== | ||
+ | The admin can hide a driver if that driver is not going to take a trip for a long time. | ||
==== Create and assign trip ==== | ==== Create and assign trip ==== |