feat: add user submission functionality

This commit is contained in:
2026-07-05 21:45:45 +03:30
parent afb5045cf0
commit 7b44542ce7
48 changed files with 1459 additions and 55 deletions
@@ -36,6 +36,7 @@ export class Question {
content!: string;
@Column({ type: 'int', nullable: false })
@Index()
order!: number;
@Column({ type: 'int', default: 1 })
@@ -51,7 +52,7 @@ export class Question {
metadata!: QuestionMetadata;
@OneToMany(() => Choice, (choice) => choice.question)
choices?: Array<Choice>;
choices!: Array<Choice>;
@CreateDateColumn()
createdAt!: Date;