Skip to content

Commit

Permalink
Add poosibleResponses to assessment table; add type to resource table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Grayson committed Mar 27, 2024
1 parent 1785f21 commit 3a01a05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/models/assessment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
BaseEntity,
Column,
CreateDateColumn,
Entity,
ManyToOne,
Expand All @@ -21,6 +22,9 @@ export class Assessment extends BaseEntity {
@UpdateDateColumn()
updatedAt: Date;

@Column()
type: string;

@ManyToOne(() => User, (user) => user.assessments)
user: User;

Expand Down
3 changes: 3 additions & 0 deletions backend/src/models/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class Resource extends BaseEntity {
@Column()
name: string;

@Column('varchar', { array: true })
possibleResponses: string[];

@Column()
type: string;

Expand Down

0 comments on commit 3a01a05

Please sign in to comment.