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