1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Added user type to organization APIs

This commit is contained in:
Kyle Spearrin 2017-03-25 16:34:30 -04:00
parent b144f8a686
commit 5b7c683c57
3 changed files with 5 additions and 1 deletions

View File

@ -12,11 +12,13 @@ namespace Bit.Core.Models.Api
Name = organization.Name;
Key = organization.Key;
Status = organization.Status;
Type = organization;
}
public string Id { get; set; }
public string Name { get; set; }
public string Key { get; set; }
public OrganizationUserStatusType Status { get; set; }
public OrganizationUserType Type { get; set; }
}
}

View File

@ -9,5 +9,6 @@ namespace Bit.Core.Models.Data
public string Name { get; set; }
public string Key { get; set; }
public Enums.OrganizationUserStatusType Status { get; set; }
public Enums.OrganizationUserType Type { get; set; }
}
}

View File

@ -5,7 +5,8 @@ SELECT
OU.[OrganizationId],
O.[Name],
OU.[Key],
OU.[Status]
OU.[Status],
OU.[Type]
FROM
[dbo].[OrganizationUser] OU
INNER JOIN