This commit is contained in:
fro1991
2025-02-12 15:02:58 +07:00
parent 8e8680f23f
commit 14e09c0917

View File

@ -21,7 +21,7 @@ export class BrivaTransaction {
}) })
reference_number: string; reference_number: string;
@ManyToOne(() => Branch, { onDelete: "RESTRICT" }) @ManyToOne(() => Branch)
@JoinColumn() @JoinColumn()
branch: Branch branch: Branch
@ -31,7 +31,7 @@ export class BrivaTransaction {
}) })
teller_code: string; teller_code: string;
@ManyToOne(() => BrivaAccount, { onDelete: 'CASCADE' }) @ManyToOne(() => BrivaAccount)
@JoinTable() @JoinTable()
account: BrivaAccount account: BrivaAccount