remove unneccessary relation

This commit is contained in:
einhornimmond 2023-08-25 17:13:16 +02:00
parent 7ce40c780e
commit e6601b6cd8
2 changed files with 2 additions and 8 deletions

View File

@ -61,12 +61,6 @@ export class Account {
@Column({ name: 'balance_date', type: 'datetime' })
balanceDate: Date
@OneToOne(() => Community, (community) => community.gmwAccount)
gmwCommunity?: Community
@OneToOne(() => Community, (community) => community.aufAccount)
aufCommunity?: Community
@ManyToMany(() => Community, (community) => community.communityAccounts)
@JoinTable({
name: 'accounts_communities',

View File

@ -35,14 +35,14 @@ export class Community {
@Column({ name: 'gmw_account_id', type: 'int', unsigned: true, nullable: true })
gmwAccountId?: number
@OneToOne(() => Account, (account) => account.gmwCommunity)
@OneToOne(() => Account)
@JoinColumn({ name: 'gmw_account_id' })
gmwAccount?: Account
@Column({ name: 'auf_account_id', type: 'int', unsigned: true, nullable: true })
aufAccountId?: number
@OneToOne(() => Account, (account) => account.aufCommunity)
@OneToOne(() => Account)
@JoinColumn({ name: 'auf_account_id' })
aufAccount?: Account