From 407a5a3c6c1d6d4c170d7646f921bb6f2fb2f380 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 3 Mar 2018 16:18:01 +0000 Subject: now compiles. also added stubs for database testing --- .../src/db/model/ContributorGroup.ts.html | 227 --------------------- 1 file changed, 227 deletions(-) delete mode 100644 coverage/project-code/src/db/model/ContributorGroup.ts.html (limited to 'coverage/project-code/src/db/model/ContributorGroup.ts.html') diff --git a/coverage/project-code/src/db/model/ContributorGroup.ts.html b/coverage/project-code/src/db/model/ContributorGroup.ts.html deleted file mode 100644 index e8e3ce2..0000000 --- a/coverage/project-code/src/db/model/ContributorGroup.ts.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - Code coverage report for project-code/src/db/model/ContributorGroup.ts - - - - - - - -
-
-

- All files / project-code/src/db/model ContributorGroup.ts -

-
-
- 53.85% - Statements - 14/26 -
-
- 100% - Branches - 0/0 -
-
- 0% - Functions - 0/3 -
-
- 86.67% - Lines - 13/15 -
-
-
-
-

-
-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -551x -  -1x -  -  -1x -  -  -1x -  -  -  -  -1x -  -  -1x -  -  -1x -  -  -1x -  -  -1x -  -  -1x -  -  -1x -  -  -  -1x -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import { AllowNull, Column, DataType, HasMany, Model, Table
-	} from 'sequelize-typescript';
-import { default as UserJoinsProject } from './UserJoinsProject';
- 
-@Table
-export default class ContributorGroup extends Model<ContributorGroup> {
-	@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