From 3198c6c2474101623e3b95bd038effe210c176a8 Mon Sep 17 00:00:00 2001 From: THarley Date: Thu, 22 Feb 2018 17:19:08 +0000 Subject: Revert "Merge branch 'trh/error-middleware' into 'master'" This reverts merge request !13--- src/db/model/ContributorGroup.ts | 54 ---------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/db/model/ContributorGroup.ts (limited to 'src/db/model/ContributorGroup.ts') diff --git a/src/db/model/ContributorGroup.ts b/src/db/model/ContributorGroup.ts deleted file mode 100644 index 6bbcf4a..0000000 --- a/src/db/model/ContributorGroup.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { AllowNull, Column, DataType, HasMany, Model, Table - } from 'sequelize-typescript'; -import { default as UserJoinsProject } from './UserJoinsProject'; - -@Table -export default class ContributorGroup extends Model { - @AllowNull - @Column(DataType.TEXT) - public name: string | null = null; - - /* "Error: Foreign key for "ContributorGroup" - * is missing on "UserJoinsProject"." */ - @HasMany(() => UserJoinsProject, 'contributorGroupId') - public uses: UserJoinsProject[] = []; - - @Column - public canCreateFiles: boolean = false; - - @Column - public canDeleteFiles: boolean = false; - - @Column - public canViewFiles: boolean = false; - - @Column - public canAddUsers: boolean = false; - - @Column - public canRemoveUsers: boolean = false; - - @Column - public canEditUserPermissions: boolean = false; - - @AllowNull - @Column(DataType.TEXT) - public description: string | null = null; - - @Column - public isInternal: boolean = true; - - public getContributorGroupFullInfo(): ContributorGroupFullInfo { - return { - role: `${this.name}`, - description: `${this.description}`, - internal: this.isInternal - }; - } -} - -export interface ContributorGroupFullInfo { - role: string; - description: string; - internal: boolean; -} -- cgit v1.2.1