feat: change scoring strategy

This commit is contained in:
2026-06-20 07:48:33 +03:30
parent 84b9267735
commit afb5045cf0
33 changed files with 634 additions and 34 deletions
@@ -1,21 +0,0 @@
import { Test } from '@/modules/tests/entities/test.entity';
import {
Column,
Entity,
JoinColumn,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
@Entity()
export class RuleSet {
@PrimaryGeneratedColumn()
id!: number;
@OneToOne(() => Test, (test) => test.ruleSet)
@JoinColumn()
test!: Test;
@Column({ type: 'jsonb', nullable: false })
config: any;
}
+1 -2
View File
@@ -1,9 +1,8 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ResultRange } from './entities/result-range.entity';
import { RuleSet } from './entities/rule-set.entity';
@Module({
imports: [TypeOrmModule.forFeature([ResultRange, RuleSet])],
imports: [TypeOrmModule.forFeature([ResultRange])],
})
export class ScoringModule {}