diff options
author | Jake Ellowitz <jake.ellowitz@gmail.com> | 2018-11-20 11:11:51 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | dea89c4e221d5b22de97b27573719cd27ce250c7 (patch) | |
tree | 8bb98513d90e6759d57f20d2d458625d4b68dc80 /packages/pipeline/src/entities/token_metadata.ts | |
parent | c6af5131b0b06433d6294260274e187ad61f4ef7 (diff) | |
download | dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar.gz dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar.bz2 dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar.lz dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar.xz dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.tar.zst dexon-0x-contracts-dea89c4e221d5b22de97b27573719cd27ce250c7.zip |
metadata and trusted sources in same raw table
Diffstat (limited to 'packages/pipeline/src/entities/token_metadata.ts')
-rw-r--r-- | packages/pipeline/src/entities/token_metadata.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/token_metadata.ts b/packages/pipeline/src/entities/token_metadata.ts new file mode 100644 index 000000000..4a0bceefe --- /dev/null +++ b/packages/pipeline/src/entities/token_metadata.ts @@ -0,0 +1,19 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +@Entity({ name: 'token_metadata', schema: 'raw' }) +export class TokenMetadata { + @PrimaryColumn({ type: 'varchar', nullable: false }) + public address!: string; + + @PrimaryColumn({ type: 'varchar', nullable: false }) + public authority!: string; + + @Column({ type: 'integer', nullable: true }) + public decimals!: number; + + @Column({ type: 'varchar', nullable: true }) + public symbol!: string; + + @Column({ type: 'varchar', nullable: true }) + public name!: string; +} |