upd: add column status in service
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user