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