diff --git a/src/entity/service.ts b/src/entity/service.ts index 4d1accd..0a1292a 100644 --- a/src/entity/service.ts +++ b/src/entity/service.ts @@ -14,6 +14,7 @@ import { import { ServiceType } from './service_type'; import { Room } from './room'; import { ExaminationDetail } from './examination_detail'; +import { Status } from '../types/status'; @Entity('services') export class Service { @@ -26,6 +27,12 @@ export class Service { }) name: string; + @Column({ + nullable: false, + length: 64 + }) + status: Status; + @ManyToOne(() => ServiceType, { onDelete: 'NO ACTION' }) @JoinColumn() serviceType: ServiceType;