change in database, no idea how this was changed

This commit is contained in:
ogerly 2022-02-22 20:11:55 +01:00
parent 1b4f0d4b60
commit 2d1dedf5ec

View File

@ -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
} }