Add User

PENDING 8 hrs Medium 2024-04-25

User Story

  • Able to create users
  • Collect Basic Information.
  • User needs to have roles.
  • User needs to have permissions.

Basic Information Need to be collected

  • Name (Required)
  • Email
  • Phone (Required)
  • Alternate Phone
  • Whatsapp Number

Roles

  • Customer
  • Engineer
  • Admin
  • Super Admin

Note: By Default user needs to have customer role.

REST API

JSON Structure

{
  "id": "string",
  "createdAt": "2024-07-29T11:36:21.505Z",
  "updatedAt": "2024-07-29T11:36:21.505Z",
  "name": "string",
  "email": "string",
  "phone": "string",
  "alternatePhone": "string",
  "whatsapp": "string",
  "password": "string",
  "roles": [
    {
      "id": "string",
      "createdAt": "2024-07-29T11:36:21.505Z",
      "updatedAt": "2024-07-29T11:36:21.505Z",
      "title": "string",
      "key": "string",
      "description": "string",
      "active": true,
      "default": true,
      "users": ["string"]
    }
  ]
}