aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Block.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pipeline/src/entities/Block.ts')
-rw-r--r--packages/pipeline/src/entities/Block.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/pipeline/src/entities/Block.ts b/packages/pipeline/src/entities/Block.ts
index 49e0ef840..5bd51f3d2 100644
--- a/packages/pipeline/src/entities/Block.ts
+++ b/packages/pipeline/src/entities/Block.ts
@@ -1,9 +1,10 @@
import { Column, Entity, PrimaryColumn } from 'typeorm';
-@Entity()
+@Entity({ name: 'blocks' })
export class Block {
@PrimaryColumn() public hash!: string;
@PrimaryColumn() public number!: number;
- @Column() public unixTimestampSeconds!: number;
+ @Column({ name: 'unix_timestamp_seconds' })
+ public unixTimestampSeconds!: number;
}