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

@Entity({ name: 'blocks', schema: 'raw' })
export class Block {
    @PrimaryColumn() public hash!: string;
    @PrimaryColumn() public number!: number;

    @Column({ name: 'unix_timestamp_seconds' })
    public unixTimestampSeconds!: number;
}