mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
fix relation, add database diagramm
This commit is contained in:
parent
2aee853f7a
commit
e3316a6be7
@ -5,6 +5,7 @@ import {
|
||||
CreateDateColumn,
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
} from 'typeorm'
|
||||
import { Decimal } from 'decimal.js-light'
|
||||
|
||||
@ -17,7 +18,7 @@ export class ConfirmedTransaction {
|
||||
@PrimaryGeneratedColumn('increment', { unsigned: true, type: 'bigint' })
|
||||
id: number
|
||||
|
||||
@ManyToOne(() => TransactionDraft, (draft) => draft.confirmedTransactions)
|
||||
@OneToOne(() => TransactionDraft, (draft) => draft.confirmedTransaction)
|
||||
@JoinColumn({ name: 'transaction_draft_id' })
|
||||
transactionDraft: TransactionDraft
|
||||
|
||||
@ -34,6 +35,9 @@ export class ConfirmedTransaction {
|
||||
@JoinColumn({ name: 'account_id' })
|
||||
account: Account
|
||||
|
||||
@Column({ name: 'account_id', type: 'int', unsigned: true })
|
||||
accountId: number
|
||||
|
||||
@Column({
|
||||
name: 'account_balance',
|
||||
type: 'decimal',
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
ManyToOne,
|
||||
OneToMany,
|
||||
OneToOne,
|
||||
JoinColumn,
|
||||
} from 'typeorm'
|
||||
import { Decimal } from 'decimal.js-light'
|
||||
@ -74,6 +74,6 @@ export class TransactionDraft {
|
||||
@Column({ name: 'protocol_version', type: 'int', default: 1 })
|
||||
protocolVersion: number
|
||||
|
||||
@OneToMany(() => ConfirmedTransaction, (transaction) => transaction.transactionDraft)
|
||||
confirmedTransactions?: ConfirmedTransaction[]
|
||||
@OneToOne(() => ConfirmedTransaction, (transaction) => transaction.transactionDraft)
|
||||
confirmedTransaction?: ConfirmedTransaction
|
||||
}
|
||||
|
||||
11057
docu/Concepts/DLT/img/dlt-diagramm.pdf
Normal file
11057
docu/Concepts/DLT/img/dlt-diagramm.pdf
Normal file
File diff suppressed because one or more lines are too long
BIN
docu/Concepts/DLT/img/dlt-diagramm.png
Normal file
BIN
docu/Concepts/DLT/img/dlt-diagramm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 146 KiB |
Loading…
x
Reference in New Issue
Block a user