feat: change answer submission architecture
This commit is contained in:
@@ -31,6 +31,9 @@ export class Submission {
|
||||
})
|
||||
status!: SubmissionStatus;
|
||||
|
||||
@Column({ type: 'int', nullable: false, default: 1 })
|
||||
currentQuestionOrder!: number;
|
||||
|
||||
@OneToMany(() => SubmissionAnswer, (answer) => answer.submission)
|
||||
answers!: Array<SubmissionAnswer>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user