diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 02:53:18 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | 2dfdc19c9ed56785d679af47fec92c133c5a2e3a (patch) | |
tree | 2dc4d9630e85a43513fbe7a13d5afced79d20df6 /packages/pipeline/src/entities/Block.ts | |
parent | 012134001a3f0f60c938c453dc34d78e83e195c1 (diff) | |
download | dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.gz dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.bz2 dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.lz dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.xz dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.tar.zst dexon-sol-tools-2dfdc19c9ed56785d679af47fec92c133c5a2e3a.zip |
Rename table and column names
Diffstat (limited to 'packages/pipeline/src/entities/Block.ts')
-rw-r--r-- | packages/pipeline/src/entities/Block.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/pipeline/src/entities/Block.ts b/packages/pipeline/src/entities/Block.ts index 49e0ef840..5bd51f3d2 100644 --- a/packages/pipeline/src/entities/Block.ts +++ b/packages/pipeline/src/entities/Block.ts @@ -1,9 +1,10 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -@Entity() +@Entity({ name: 'blocks' }) export class Block { @PrimaryColumn() public hash!: string; @PrimaryColumn() public number!: number; - @Column() public unixTimestampSeconds!: number; + @Column({ name: 'unix_timestamp_seconds' }) + public unixTimestampSeconds!: number; } |