found blocks services and tables

This commit is contained in:
Ben Wilson
2023-07-12 22:53:26 -04:00
parent cf3f414475
commit ddc7907919
7 changed files with 115 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { TrackedEntity } from '../utils/TrackedEntity.entity';
@Entity()
export class BlocksEntity extends TrackedEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
height: number;
@Column({ length: 62, type: 'varchar' })
minerAddress: string;
@Column()
worker: string;
@Column({ length: 8, type: 'varchar' })
sessionId: string;
@Column()
blockData: string;
}