aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/token_on_chain_metadata.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pipeline/src/entities/token_on_chain_metadata.ts')
-rw-r--r--packages/pipeline/src/entities/token_on_chain_metadata.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/token_on_chain_metadata.ts b/packages/pipeline/src/entities/token_on_chain_metadata.ts
new file mode 100644
index 000000000..fc21d0aed
--- /dev/null
+++ b/packages/pipeline/src/entities/token_on_chain_metadata.ts
@@ -0,0 +1,16 @@
+import { Column, Entity, PrimaryColumn } from 'typeorm';
+
+@Entity({ name: 'token_on_chain_metadata' })
+export class TokenOnChainMetadata {
+ @PrimaryColumn({ type: 'nvarchar', nullable: false })
+ public address!: string;
+
+ @Column({ type: 'integer', nullable: false })
+ public decimals!: number;
+
+ @Column({ type: 'nvarchar', nullable: false })
+ public symbol!: string;
+
+ @Column({ type: 'nvarchar', nullable: false })
+ public name!: string;
+} \ No newline at end of file