add quota on schedule

This commit is contained in:
avicenan
2026-03-25 11:19:54 +07:00
parent 91078871e7
commit ad965987ce
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import { Room } from "../room";
import { User } from "../users"; import { User } from "../users";
import { DoctorSchedule } from "../doctor_schedule"; import { DoctorSchedule } from "../doctor_schedule";
import { EmrInternalConsultation } from "./emr_internal_consultation"; import { EmrInternalConsultation } from "./emr_internal_consultation";
import { ScheduleSeries } from "../schedule_series";
// import { RegistrationOutPatientStatus } from "../../enum/registrationOutPatientStatus"; // import { RegistrationOutPatientStatus } from "../../enum/registrationOutPatientStatus";
/** /**
@ -43,6 +44,10 @@ export class EmrRegistrationOutpatient {
@JoinColumn() @JoinColumn()
doctor_schedule: DoctorSchedule | null; 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 }) @Column({ nullable: true, length: 64 })
practice_hour: string; practice_hour: string;

View File

@ -50,6 +50,9 @@ export class ScheduleSeries {
@Column({ type: "time", nullable: false }) @Column({ type: "time", nullable: false })
end_time_local: string; end_time_local: string;
@Column({ type: "int", nullable: true })
quota: number;
@Column({ nullable: true, type: "text" }) @Column({ nullable: true, type: "text" })
recurrence_rule: string; recurrence_rule: string;