mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
22 lines
629 B
TypeScript
22 lines
629 B
TypeScript
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm'
|
|
import { Transaction } from '../Transaction'
|
|
|
|
@Entity('transaction_signatures')
|
|
export class TransactionSignature extends BaseEntity {
|
|
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
|
id: number
|
|
|
|
@Column({ name: 'transaction_id' })
|
|
transactionId: number
|
|
|
|
@Column({ type: 'binary', length: 64, nullable: false })
|
|
signature: Buffer
|
|
|
|
@Column({ type: 'binary', length: 32, nullable: false })
|
|
pubkey: Buffer
|
|
|
|
@OneToOne(() => Transaction)
|
|
@JoinColumn({ name: 'transaction_id' })
|
|
transaction: Transaction
|
|
}
|