update: add new field maximal_liability to patient guarantor

This commit is contained in:
wayanrivan
2026-03-31 13:04:16 +07:00
parent e8c7bbc224
commit 1464e6a05d

View File

@ -44,6 +44,12 @@ export class PatientGuarantor {
@Column({ type: "text", nullable: true }) @Column({ type: "text", nullable: true })
agreement_desc?: string; agreement_desc?: string;
@Column({
nullable: true,
type: 'bigint'
})
maximal_liability: number;
// Relasi ke PatientGroup, setiap penjamin dapat terhubung dengan satu grup pasien // Relasi ke PatientGroup, setiap penjamin dapat terhubung dengan satu grup pasien
@ManyToOne(() => PatientGroup, { nullable: false }) @ManyToOne(() => PatientGroup, { nullable: false })
@JoinColumn({ name: "patient_group_id" }) @JoinColumn({ name: "patient_group_id" })