update examination detail
This commit is contained in:
@ -7,6 +7,8 @@ import {
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
ManyToMany,
|
||||
JoinTable
|
||||
} from 'typeorm';
|
||||
|
||||
import { Status } from '../types/status';
|
||||
@ -34,9 +36,9 @@ export class ExaminationDetail {
|
||||
@JoinColumn()
|
||||
measurement_unit: MeasurementUnit;
|
||||
|
||||
@ManyToOne(() => ReferenceRange, { onDelete: 'NO ACTION', nullable: false })
|
||||
@JoinColumn()
|
||||
reference_range: ReferenceRange;
|
||||
@ManyToMany(() => ReferenceRange)
|
||||
@JoinTable()
|
||||
reference_range: ReferenceRange[];
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
|
||||
Reference in New Issue
Block a user