update: patient_guarantor.ts add faretype relation and update swagger builder
This commit is contained in:
@ -9,6 +9,7 @@ import {
|
||||
DeleteDateColumn,
|
||||
} from "typeorm";
|
||||
import { PatientGroup } from "./patient_group"; // Import entity PatientGroup
|
||||
import { FareType } from "./faretype";
|
||||
|
||||
@Entity("patient_guarantor")
|
||||
export class PatientGuarantor {
|
||||
@ -48,6 +49,10 @@ import {
|
||||
@JoinColumn({ name: "patient_group_id" })
|
||||
patient_group!: PatientGroup;
|
||||
|
||||
@ManyToOne(() => FareType, { nullable: false })
|
||||
@JoinColumn()
|
||||
faretype!: FareType;
|
||||
|
||||
// Tanggal pembuatan
|
||||
@CreateDateColumn()
|
||||
created_at!: Date;
|
||||
|
||||
Reference in New Issue
Block a user