diff options
| author | cjd24 | 2018-02-08 23:28:31 +0000 |
|---|---|---|
| committer | cjd24 | 2018-02-08 23:28:31 +0000 |
| commit | 9c4004778fee393ad2288bda7f51bceea937d4d3 (patch) | |
| tree | 08fbb8ec6f17bd88aeb636f383d91d462dd5d6a7 /src/db/model | |
| parent | Edited some Model stuff, and filled in more stubs to use ORM models (diff) | |
| download | medicine-9c4004778fee393ad2288bda7f51bceea937d4d3.tar.gz medicine-9c4004778fee393ad2288bda7f51bceea937d4d3.zip | |
Finiisshed? up nearly all of the stubs for get requests - Waiting to fix the db problem to implement others
Diffstat (limited to 'src/db/model')
| -rw-r--r-- | src/db/model/ContributorGroup.ts | 20 |
1 files changed, 20 insertions, 0 deletions
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<ContributorGroup> { @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 +}; |
