User

An user of the system

            classDiagram
      namespace Users {
        class _Users_User_yaml["User"]
        class RoleItems["RoleItems"]
        class CustomerProjectsItems["CustomerProjectsItems"]
        class CustomerProjectsItemsRoleInProjectItems["CustomerProjectsItemsRoleInProjectItems"]
        class _Users_CustomerProject_yaml["Customer Project"]
      }
      namespace Expenses {
        class _Expenses_Expense_yaml["Expense"]
        class _Expenses_ExpenseJournal_yaml["Expense Journal Entry"]
      }
      _Expenses_Expense_yaml ..> _Users_User_yaml :userId
      _Expenses_ExpenseJournal_yaml ..> _Users_User_yaml :userId
      _Users_User_yaml o--" N" CustomerProjectsItems :customerProjects
      _Users_User_yaml ..>" N" RoleItems :role
      CustomerProjectsItems ..> _Users_CustomerProject_yaml :projectId
      CustomerProjectsItems ..>" N" CustomerProjectsItemsRoleInProjectItems :roleInProject
      click _Users_User_yaml href "./User.yaml.html" "User"
      click RoleItems href "./User.yaml.html" "User"
      click CustomerProjectsItems href "./User.yaml.html" "User"
      click CustomerProjectsItemsRoleInProjectItems href "./User.yaml.html" "User"
      click _Expenses_Expense_yaml href "../Expenses/Expense.yaml.html" "Expense"
      click _Expenses_ExpenseJournal_yaml href "../Expenses/ExpenseJournal.yaml.html" "Expense Journal Entry"
      click _Users_CustomerProject_yaml href "./CustomerProject.yaml.html" "Customer Project"
          

Properties

Property Type Description
firstName* String The first name of the user
lastName* String The last name of the user
email* Email The email of the user
customerProjects [CustomerProjectsItems]
role [RoleItems]

Examples

        {"firstName":"John","lastName":"Doe","email":"john.doe@example.com","customerProjects":[{"projectId":"1","roleInProject":["admin"]},{"projectId":"2","roleInProject":["member"]}],"role":["admin"]}
        

Subschemas

Enum RoleItems

Enum Description
admin Administrator
user Regular user
finance Employee in the finance department

Class CustomerProjectsItems

Property Type Description
projectId References Customer Project The id of the project
roleInProject [CustomerProjectsItemsRoleInProjectItems]

Enum CustomerProjectsItemsRoleInProjectItems

Enum Description
admin Administrator of the project
member Regular member of the project
leader Project-leader, can accept expenses

Links