diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 02:53:18 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:14:08 +0800 |
commit | 99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1 (patch) | |
tree | 738a31fa77df797eaf5a03f7d608a804b5f9d9d4 /packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | |
parent | 9d8c423b983e23c2f5e1a404ddb97a68708d618e (diff) | |
download | dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar.gz dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar.bz2 dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar.lz dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar.xz dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.tar.zst dexon-sol-tools-99d90bb66558bf24c9eaed9a4da19b99ebd7e3b1.zip |
Rename table and column names
Diffstat (limited to 'packages/pipeline/src/entities/exchange_cancel_up_to_event.ts')
-rw-r--r-- | packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | 23 |
1 files changed, 15 insertions, 8 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 3ca75ccf7..891550050 100644 --- a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts +++ b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts @@ -1,16 +1,23 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -@Entity() +@Entity({ name: 'exchange_cancel_up_to_event' }) export class ExchangeCancelUpToEvent { - @PrimaryColumn() public contractAddress!: string; - @PrimaryColumn() public logIndex!: number; - @PrimaryColumn() public blockNumber!: number; + @PrimaryColumn({ name: 'contract_address' }) + public contractAddress!: string; + @PrimaryColumn({ name: 'log_index' }) + public logIndex!: number; + @PrimaryColumn({ name: 'block_number' }) + public blockNumber!: number; // TODO(albrow): Include transaction hash - @Column() public rawData!: string; + @Column({ name: 'raw_data' }) + public rawData!: string; - @Column() public makerAddress!: string; - @Column() public senderAddress!: string; - @Column() public orderEpoch!: string; + @Column({ name: 'maker_address' }) + public makerAddress!: string; + @Column({ name: 'sender_address' }) + public senderAddress!: string; + @Column({ name: 'order_epoch' }) + public orderEpoch!: string; // TODO(albrow): Include topics? } |