mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
remove unneccessary relation
This commit is contained in:
parent
7ce40c780e
commit
e6601b6cd8
@ -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',
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user