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.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/block.ts b/packages/pipeline/src/entities/block.ts
new file mode 100644
index 000000000..5bd51f3d2
--- /dev/null
+++ b/packages/pipeline/src/entities/block.ts
@@ -0,0 +1,10 @@
+import { Column, Entity, PrimaryColumn } from 'typeorm';
+
+@Entity({ name: 'blocks' })
+export class Block {
+ @PrimaryColumn() public hash!: string;
+ @PrimaryColumn() public number!: number;
+
+ @Column({ name: 'unix_timestamp_seconds' })
+ public unixTimestampSeconds!: number;
+}