aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorcjd242018-02-08 23:28:31 +0000
committercjd242018-02-08 23:28:31 +0000
commit9c4004778fee393ad2288bda7f51bceea937d4d3 (patch)
tree08fbb8ec6f17bd88aeb636f383d91d462dd5d6a7 /src/db
parentEdited some Model stuff, and filled in more stubs to use ORM models (diff)
downloadmedicine-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')
-rw-r--r--src/db/model/ContributorGroup.ts20
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
+};