feat(opd): add appointment id col
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
|||||||
ManyToOne,
|
ManyToOne,
|
||||||
OneToOne,
|
OneToOne,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
|
OneToMany,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import { EmrRegistration } from "./emr_registration";
|
import { EmrRegistration } from "./emr_registration";
|
||||||
@ -38,12 +39,10 @@ export class EmrRegistrationOutpatient {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
doctor: User;
|
doctor: User;
|
||||||
|
|
||||||
/** Jika user pilih dari jadwal dokter, link ke slot tersebut */
|
|
||||||
@ManyToOne(() => DoctorSchedule, { onDelete: "SET NULL", nullable: true })
|
@ManyToOne(() => DoctorSchedule, { onDelete: "SET NULL", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
doctor_schedule: DoctorSchedule | null;
|
doctor_schedule: DoctorSchedule | null;
|
||||||
|
|
||||||
/** Contoh: "08:00-12:00" atau "Pagi" */
|
|
||||||
@Column({ nullable: true, length: 64 })
|
@Column({ nullable: true, length: 64 })
|
||||||
practice_hour: string;
|
practice_hour: string;
|
||||||
|
|
||||||
@ -62,6 +61,10 @@ export class EmrRegistrationOutpatient {
|
|||||||
@Column({ nullable: true, length: 256 })
|
@Column({ nullable: true, length: 256 })
|
||||||
registration_number: string;
|
registration_number: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "SET NULL", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
appointment_id: EmrRegistrationOutpatient | null;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user