From f66a9fa7f132f41b2e40029f0fb535521c3fb716 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 24 Feb 2018 17:13:43 +0000 Subject: restructuring of tests + yarn install script --- coverage/project-code/src/db/model/File.ts.html | 206 ++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 coverage/project-code/src/db/model/File.ts.html (limited to 'coverage/project-code/src/db/model/File.ts.html') diff --git a/coverage/project-code/src/db/model/File.ts.html b/coverage/project-code/src/db/model/File.ts.html new file mode 100644 index 0000000..f552af3 --- /dev/null +++ b/coverage/project-code/src/db/model/File.ts.html @@ -0,0 +1,206 @@ + + + + Code coverage report for project-code/src/db/model/File.ts + + + + + + + +
+
+

+ All files / project-code/src/db/model File.ts +

+
+
+ 48.48% + Statements + 16/33 +
+
+ 100% + Branches + 0/0 +
+
+ 0% + Functions + 0/7 +
+
+ 71.43% + Lines + 15/21 +
+
+
+
+

+
+
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 +481x +1x +  +1x +  +  +1x +  +1x +  +  +  +1x +  +  +1x +  +  +  +  +1x +  +  +1x +  +  +1x +  +  +  +  +1x +  +  +1x +  +  +1x +  +  +  +1x +  +  +  +1x +  + 
import { default as Project } from './Project';
+import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, HasMany,
+		HasOne, Model, PrimaryKey, Table, UpdatedAt } from 'sequelize-typescript';
+import { default as User } from './User';
+ 
+@Table
+export default class File extends Model<File> {
+	@Column
+	public name: string = '';
+ 
+	@PrimaryKey
+	@Column
+	public uuid: string = '';
+ 
+	@Column
+	public mimetype: string = '';
+ 
+	@ForeignKey(() => File)
+	@AllowNull
+	@Column(DataType.TEXT)
+	public parentFolderId: string | null = null;
+ 
+	@BelongsTo(() => File)
+	public parentFolder: File = new File();
+ 
+	@HasMany(() => File)
+	public containedFiles: File[] = [];
+ 
+	@ForeignKey(() => User)
+	@AllowNull
+	@Column(DataType.TEXT)
+	public creatorName: string | null = null;
+ 
+	@BelongsTo(() => User)
+	public creator: User = new User();
+ 
+	@HasOne(() => Project)
+	public rootFolderOf: Project = new Project();
+ 
+	@CreatedAt
+	@Column
+	public uploadDate: Date = new Date();
+ 
+	@UpdatedAt
+	@Column
+	public modifyDate: Date = new Date();
+}
+ 
+
+
+ + + + + + + -- cgit v1.2.1