feat add questions module and admin routes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user