From 61343609cb3c3216220892ebed0c36ba359aa95f Mon Sep 17 00:00:00 2001 From: avicenan Date: Fri, 20 Feb 2026 15:41:31 +0700 Subject: [PATCH] upd: add column status in service --- src/entity/service.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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;