feat: change answer submission architecture
This commit is contained in:
@@ -56,6 +56,9 @@ export class Test {
|
||||
@OneToMany(() => Question, (question) => question.test)
|
||||
questions!: Array<Question>;
|
||||
|
||||
@Column({ type: 'int', nullable: false, default: 0 })
|
||||
questionsCount!: number;
|
||||
|
||||
@OneToMany(() => ResultRange, (range) => range.test)
|
||||
resultRanges!: Array<ResultRange>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user