aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/block.ts
blob: 49e0ef84052c8fb5d570cf9df9f0e7a8d85b7189 (plain) (blame)
1
2
3
4
5
6
7
8
9
import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity()
export class Block {
    @PrimaryColumn() public hash!: string;
    @PrimaryColumn() public number!: number;

    @Column() public unixTimestampSeconds!: number;
}