add quota on schedule
This commit is contained in:
@ -15,6 +15,7 @@ import { Room } from "../room";
|
||||
import { User } from "../users";
|
||||
import { DoctorSchedule } from "../doctor_schedule";
|
||||
import { EmrInternalConsultation } from "./emr_internal_consultation";
|
||||
import { ScheduleSeries } from "../schedule_series";
|
||||
// import { RegistrationOutPatientStatus } from "../../enum/registrationOutPatientStatus";
|
||||
|
||||
/**
|
||||
@ -43,6 +44,10 @@ export class EmrRegistrationOutpatient {
|
||||
@JoinColumn()
|
||||
doctor_schedule: DoctorSchedule | null;
|
||||
|
||||
@ManyToOne(() => ScheduleSeries, { onDelete: "SET NULL", nullable: true })
|
||||
@JoinColumn({ name: "schedule_series_id" })
|
||||
schedule_series: ScheduleSeries | null;
|
||||
|
||||
@Column({ nullable: true, length: 64 })
|
||||
practice_hour: string;
|
||||
|
||||
|
||||
@ -50,6 +50,9 @@ export class ScheduleSeries {
|
||||
@Column({ type: "time", nullable: false })
|
||||
end_time_local: string;
|
||||
|
||||
@Column({ type: "int", nullable: true })
|
||||
quota: number;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
recurrence_rule: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user