feat(opd): add appointment id

This commit is contained in:
avicenan
2026-05-27 11:17:07 +09:00
parent 12a5ec7d49
commit 4be58af318

View File

@ -79,6 +79,10 @@ export class EmrRegistrationOutpatient {
@JoinColumn() @JoinColumn()
ref_consultation: EmrInternalConsultation | null; ref_consultation: EmrInternalConsultation | null;
@ManyToOne(() => EmrRegistration, { onDelete: "SET NULL", nullable: true })
@JoinColumn({ name: "ref_appointment_id" })
ref_appointment: EmrRegistration;
@Column({ nullable: true }) @Column({ nullable: true })
queued_at?: Date; queued_at?: Date;