aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
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
+};