feat: change scoring strategy
This commit is contained in:
@@ -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,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 {}
|
||||
|
||||
Reference in New Issue
Block a user