2023-12-17 16:31:54 +01:00

14 lines
450 B
TypeScript

import { Entity, PrimaryGeneratedColumn, Column, BaseEntity } from 'typeorm'
@Entity('invalid_transactions')
export class InvalidTransaction extends BaseEntity {
@PrimaryGeneratedColumn('increment', { unsigned: true, type: 'bigint' })
id: number
@Column({ name: 'iota_message_id', type: 'binary', length: 32, unique: true })
iotaMessageId: Buffer
@Column({ name: 'error_message', type: 'varchar', length: 255 })
errorMessage: string
}