diff options
author | Jake Ellowitz <jake.ellowitz@gmail.com> | 2018-11-14 01:38:23 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:15:56 +0800 |
commit | ea95de7d9d496b97639b94ee463b133d282bb42b (patch) | |
tree | eb1d5019e78d14349d9bd12c66c3486740510806 /packages/pipeline | |
parent | 52f2ee6e797435d887d4ad06955a3ffbf61081ca (diff) | |
download | dexon-sol-tools-ea95de7d9d496b97639b94ee463b133d282bb42b.tar.gz dexon-sol-tools-ea95de7d9d496b97639b94ee463b133d282bb42b.tar.zst dexon-sol-tools-ea95de7d9d496b97639b94ee463b133d282bb42b.zip |
Mapping dev schema to initial migration
Diffstat (limited to 'packages/pipeline')
-rw-r--r-- | packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | 2 | ||||
-rw-r--r-- | packages/pipeline/src/entities/token_on_chain_metadata.ts | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts index 891550050..bc3bab6bb 100644 --- a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts +++ b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts @@ -1,6 +1,6 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -@Entity({ name: 'exchange_cancel_up_to_event' }) +@Entity({ name: 'exchange_cancel_up_to_events' }) export class ExchangeCancelUpToEvent { @PrimaryColumn({ name: 'contract_address' }) public contractAddress!: string; 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 |