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.ts9
1 files changed, 9 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..49e0ef840
--- /dev/null
+++ b/packages/pipeline/src/entities/Block.ts
@@ -0,0 +1,9 @@
+import { Column, Entity, PrimaryColumn } from 'typeorm';
+
+@Entity()
+export class Block {
+ @PrimaryColumn() public hash!: string;
+ @PrimaryColumn() public number!: number;
+
+ @Column() public unixTimestampSeconds!: number;
+}