diff options
author | Jake Ellowitz <jake.ellowitz@gmail.com> | 2018-11-14 01:38:23 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 599a3f9b9614be6db1c9979514f3acca3f48bd05 (patch) | |
tree | 938917dad9c4bb32b65c56f443dcafe5e069f6f5 /packages/pipeline/src/entities/token_on_chain_metadata.ts | |
parent | 688d277b30b287f66f0dbd49f2a23cab8b256219 (diff) | |
download | dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.gz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.bz2 dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.lz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.xz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.zst dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.zip |
Mapping dev schema to initial migration
Diffstat (limited to 'packages/pipeline/src/entities/token_on_chain_metadata.ts')
-rw-r--r-- | packages/pipeline/src/entities/token_on_chain_metadata.ts | 16 |
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 |