feat: add medical test entities
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user