From 3a01a058061c3c1ce19e07a71ca43488f835d7c1 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Wed, 27 Mar 2024 11:36:01 -0500 Subject: [PATCH] Add poosibleResponses to assessment table; add type to resource table. --- backend/src/models/assessment.ts | 4 ++++ backend/src/models/resource.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/backend/src/models/assessment.ts b/backend/src/models/assessment.ts index 156357b9..5b792d8d 100644 --- a/backend/src/models/assessment.ts +++ b/backend/src/models/assessment.ts @@ -1,5 +1,6 @@ import { BaseEntity, + Column, CreateDateColumn, Entity, ManyToOne, @@ -21,6 +22,9 @@ export class Assessment extends BaseEntity { @UpdateDateColumn() updatedAt: Date; + @Column() + type: string; + @ManyToOne(() => User, (user) => user.assessments) user: User; diff --git a/backend/src/models/resource.ts b/backend/src/models/resource.ts index 8b5b3317..c91d61c3 100644 --- a/backend/src/models/resource.ts +++ b/backend/src/models/resource.ts @@ -18,6 +18,9 @@ export class Resource extends BaseEntity { @Column() name: string; + @Column('varchar', { array: true }) + possibleResponses: string[]; + @Column() type: string;