From 9c4004778fee393ad2288bda7f51bceea937d4d3 Mon Sep 17 00:00:00 2001 From: cjd24 Date: Thu, 8 Feb 2018 23:28:31 +0000 Subject: Finiisshed? up nearly all of the stubs for get requests - Waiting to fix the db problem to implement others --- src/db/model/ContributorGroup.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/db') diff --git a/src/db/model/ContributorGroup.ts b/src/db/model/ContributorGroup.ts index a2808a0..8ecb648 100644 --- a/src/db/model/ContributorGroup.ts +++ b/src/db/model/ContributorGroup.ts @@ -28,4 +28,24 @@ export default class ContributorGroup extends Model { @Column canEditUserPermissions: boolean; + + @Column + description: string; + + @Column + isInternal: boolean; + + getGroupFullInfo(): GroupFullInfo { + return { + role: this.name, + description: this.description, + internal: this.isInternal + }; + } } + +type GroupFullInfo = { + role: string, + description: string, + internal: boolean +}; -- cgit v1.2.1