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