aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Transaction.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-09 02:53:18 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commit2dfdc19c9ed56785d679af47fec92c133c5a2e3a (patch)
tree2dc4d9630e85a43513fbe7a13d5afced79d20df6 /packages/pipeline/src/entities/Transaction.ts
parent012134001a3f0f60c938c453dc34d78e83e195c1 (diff)
downloaddexon-0x-contracts-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.gz
dexon-0x-contracts-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.zst
dexon-0x-contracts-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.zip
Rename table and column names
Diffstat (limited to 'packages/pipeline/src/entities/Transaction.ts')
-rw-r--r--packages/pipeline/src/entities/Transaction.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/packages/pipeline/src/entities/Transaction.ts b/packages/pipeline/src/entities/Transaction.ts
index 8a68da813..eb2883fda 100644
--- a/packages/pipeline/src/entities/Transaction.ts
+++ b/packages/pipeline/src/entities/Transaction.ts
@@ -1,13 +1,16 @@
import { Column, Entity, PrimaryColumn } from 'typeorm';
-@Entity()
+@Entity({ name: 'transactions' })
export class Transaction {
- @PrimaryColumn() public transactionHash!: string;
- @PrimaryColumn() public blockHash!: string;
- @PrimaryColumn() public blockNumber!: number;
+ @PrimaryColumn({ name: 'transaction_hash' })
+ public transactionHash!: string;
+ @PrimaryColumn({ name: 'block_hash' })
+ public blockHash!: string;
+ @PrimaryColumn({ name: 'block_number' })
+ public blockNumber!: number;
- @Column({ type: 'bigint' })
+ @Column({ type: 'bigint', name: 'gas_used' })
public gasUsed!: number;
- @Column({ type: 'bigint' })
+ @Column({ type: 'bigint', name: 'gas_price' })
public gasPrice!: number;
}