feat add questions module and admin routes

This commit is contained in:
2026-06-15 07:34:41 +03:30
parent d1fecf62ad
commit 0eea63fec1
28 changed files with 636 additions and 23 deletions
@@ -4,35 +4,35 @@ import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class ResultRange {
@PrimaryGeneratedColumn()
id: number;
id!: number;
@ManyToOne(() => Test, (test) => test.resultRanges, {
onDelete: 'CASCADE',
})
test: Test;
test!: Test;
@Column({
type: 'int',
nullable: false,
})
minScore: number;
minScore!: number;
@Column({
type: 'int',
nullable: false,
})
maxScore: number;
maxScore!: number;
@Column({
type: 'varchar',
length: 255,
nullable: false,
})
title: string;
title!: string;
@Column({
type: 'text',
nullable: false,
})
description: string;
description!: string;
}