mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change in database, no idea how this was changed
This commit is contained in:
parent
1b4f0d4b60
commit
2d1dedf5ec
@ -4,6 +4,12 @@ import { TransactionSendCoin } from '../0001-init_db/TransactionSendCoin'
|
|||||||
|
|
||||||
@Entity('transactions')
|
@Entity('transactions')
|
||||||
export class Transaction extends BaseEntity {
|
export class Transaction extends BaseEntity {
|
||||||
|
userId(userId: any) {
|
||||||
|
throw new Error('Method not implemented.')
|
||||||
|
}
|
||||||
|
amount(amount: any): number {
|
||||||
|
throw new Error('Method not implemented.')
|
||||||
|
}
|
||||||
// TODO the id is defined as bigint(20) - there might be problems with that: https://github.com/typeorm/typeorm/issues/2400
|
// TODO the id is defined as bigint(20) - there might be problems with that: https://github.com/typeorm/typeorm/issues/2400
|
||||||
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
||||||
id: number
|
id: number
|
||||||
@ -31,4 +37,7 @@ export class Transaction extends BaseEntity {
|
|||||||
|
|
||||||
@OneToOne(() => TransactionCreation, (transactionCreation) => transactionCreation.transaction)
|
@OneToOne(() => TransactionCreation, (transactionCreation) => transactionCreation.transaction)
|
||||||
transactionCreation: TransactionCreation
|
transactionCreation: TransactionCreation
|
||||||
|
sendReceiverUserId: number
|
||||||
|
sendReceiverPublicKey: Buffer
|
||||||
|
sendSenderFinalBalance: bigint
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user