feat: add medical test entities

This commit is contained in:
2026-05-23 11:02:20 +03:30
parent 7186af8e7f
commit 7dda2564a8
32 changed files with 389 additions and 11 deletions
@@ -0,0 +1,21 @@
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;
}