diff options
Diffstat (limited to 'packages/pipeline/src/entities/block.ts')
-rw-r--r-- | packages/pipeline/src/entities/block.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/pipeline/src/entities/block.ts b/packages/pipeline/src/entities/block.ts index 398946622..49e0ef840 100644 --- a/packages/pipeline/src/entities/block.ts +++ b/packages/pipeline/src/entities/block.ts @@ -1,13 +1,9 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -import { numberToBigIntTransformer } from '../utils'; - -@Entity({ name: 'blocks', schema: 'raw' }) +@Entity() export class Block { @PrimaryColumn() public hash!: string; - @PrimaryColumn({ transformer: numberToBigIntTransformer }) - public number!: number; + @PrimaryColumn() public number!: number; - @Column({ name: 'timestamp', transformer: numberToBigIntTransformer }) - public timestamp!: number; + @Column() public unixTimestampSeconds!: number; } |