aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities
diff options
context:
space:
mode:
authorJake Ellowitz <jake.ellowitz@gmail.com>2018-11-14 01:38:23 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commita3f4264790349b2db9ca8ffd341766d30f2a60b2 (patch)
tree8270d82dd1b880b0a7527bf9b81e5fb0984fb3ac /packages/pipeline/src/entities
parentb818a62d745b2e91a8808ded9bac279d2dbf8a7e (diff)
downloaddexon-0x-contracts-a3f4264790349b2db9ca8ffd341766d30f2a60b2.tar.gz
dexon-0x-contracts-a3f4264790349b2db9ca8ffd341766d30f2a60b2.tar.zst
dexon-0x-contracts-a3f4264790349b2db9ca8ffd341766d30f2a60b2.zip
Mapping dev schema to initial migration
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r--packages/pipeline/src/entities/exchange_cancel_up_to_event.ts2
-rw-r--r--packages/pipeline/src/entities/index.ts1
-rw-r--r--packages/pipeline/src/entities/token_on_chain_metadata.ts16
3 files changed, 18 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/index.ts b/packages/pipeline/src/entities/index.ts
index 4cd8d9da2..6e024f280 100644
--- a/packages/pipeline/src/entities/index.ts
+++ b/packages/pipeline/src/entities/index.ts
@@ -5,3 +5,4 @@ export { ExchangeFillEvent } from './exchange_fill_event';
export { Relayer } from './relayer';
export { SraOrder } from './sra_order';
export { Transaction } from './transaction';
+export { TokenOnChainMetadata } from './token_on_chain_metadata';
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