mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add previous transaction relation
This commit is contained in:
parent
466b755a3d
commit
95303c30e0
@ -96,4 +96,8 @@ export class Transaction extends BaseEntity {
|
|||||||
@OneToOne(() => Contribution, (contribution) => contribution.transaction)
|
@OneToOne(() => Contribution, (contribution) => contribution.transaction)
|
||||||
@JoinColumn({ name: 'id', referencedColumnName: 'transactionId' })
|
@JoinColumn({ name: 'id', referencedColumnName: 'transactionId' })
|
||||||
contribution?: Contribution | null
|
contribution?: Contribution | null
|
||||||
|
|
||||||
|
@OneToOne(() => Transaction)
|
||||||
|
@JoinColumn({ name: 'previous' })
|
||||||
|
previousTransaction?: Transaction | null
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user