upd: add column status in service

This commit is contained in:
avicenan
2026-02-20 15:41:31 +07:00
parent bff89932aa
commit 61343609cb

View File

@ -14,6 +14,7 @@ import {
import { ServiceType } from './service_type'; import { ServiceType } from './service_type';
import { Room } from './room'; import { Room } from './room';
import { ExaminationDetail } from './examination_detail'; import { ExaminationDetail } from './examination_detail';
import { Status } from '../types/status';
@Entity('services') @Entity('services')
export class Service { export class Service {
@ -26,6 +27,12 @@ export class Service {
}) })
name: string; name: string;
@Column({
nullable: false,
length: 64
})
status: Status;
@ManyToOne(() => ServiceType, { onDelete: 'NO ACTION' }) @ManyToOne(() => ServiceType, { onDelete: 'NO ACTION' })
@JoinColumn() @JoinColumn()
serviceType: ServiceType; serviceType: ServiceType;