Options
All
  • Public
  • Public/Protected
  • All
Menu

Module orm_functions/project_role

Index

Functions

  • deleteProjectRole(projectRoleId: number): Promise<project_role>
  • Parameters

    • projectRoleId: number

      the projectRole we are deleting from the project role-table

    Returns Promise<project_role>

    TODO: what does this return?

  • getNumberOfFreePositions(projectRoleId: number): Promise<null | number>
  • Parameters

    • projectRoleId: number

    Returns Promise<null | number>

    the number of free positions if free (in a promise) else null (if not found in db)

  • getNumberOfRolesByProjectAndRole(projectId: number, projectRoleId: number): Promise<project_role[]>
  • returns:

    returns the number of positions for the projectrole of that project

    Parameters

    • projectId: number
    • projectRoleId: number

    Returns Promise<project_role[]>

  • getProjectRoleById(projectRoleId: number): Promise<null | { project_id: number; project_role_id: number; role: role; role_id: number }>
  • Parameters

    • projectRoleId: number

    Returns Promise<null | { project_id: number; project_role_id: number; role: role; role_id: number }>

  • getProjectRoleNamesByProject(projectId: number): Promise<(project_role & { role: role })[]>
  • returns:

    returns all the projectroles object togheter with the role objects for that project

    Parameters

    • projectId: number

    Returns Promise<(project_role & { role: role })[]>

  • getProjectRolesByProject(projectId: number): Promise<project_role[]>

Generated using TypeDoc