update eform
This commit is contained in:
@ -7,7 +7,7 @@ export class EformFinancialBank {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EformFinancial, { onDelete: "NO ACTION", nullable: true })
|
||||
@ManyToOne(() => EformFinancial, (financial) => financial.financial_bank, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
financial: EformFinancial;
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToMany, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToMany, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { EformInterestAccountType } from "../types/eform";
|
||||
import { EformConfigSourceIncome } from "./eform_config_source_incomes";
|
||||
import { EformFinancialBank } from "./eform_financial_banks";
|
||||
@ -28,7 +28,10 @@ export class EformFinancial {
|
||||
@Column({ type: "float8", nullable: true })
|
||||
daily_transaction: number;
|
||||
|
||||
@ManyToMany(() => EformFinancialBank, (bank) => bank.financial)
|
||||
// @ManyToMany(() => EformFinancialBank, (bank) => bank.financial)
|
||||
// financial_bank: EformFinancialBank[];
|
||||
|
||||
@OneToMany(() => EformFinancialBank, (bank) => bank.financial, { cascade: true })
|
||||
financial_bank: EformFinancialBank[];
|
||||
|
||||
@Column()
|
||||
|
||||
Reference in New Issue
Block a user