diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 02:53:18 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 53cc9e9bedc6adf2247a190dbb758c9411033cab (patch) | |
tree | d7ede5521e5150ea06e1f1d8b8b7606a0c74f2e0 /packages/pipeline/src/entities/Relayer.ts | |
parent | ccad046eb649a60fdf7319a075fa41490d593ae8 (diff) | |
download | dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.gz dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.bz2 dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.lz dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.xz dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.zst dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.zip |
Rename table and column names
Diffstat (limited to 'packages/pipeline/src/entities/Relayer.ts')
-rw-r--r-- | packages/pipeline/src/entities/Relayer.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/pipeline/src/entities/Relayer.ts b/packages/pipeline/src/entities/Relayer.ts index 605355fa8..94b5232a8 100644 --- a/packages/pipeline/src/entities/Relayer.ts +++ b/packages/pipeline/src/entities/Relayer.ts @@ -1,23 +1,23 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -@Entity() +@Entity({ name: 'relayers' }) export class Relayer { @PrimaryColumn() public uuid!: string; @Column() public name!: string; @Column() public url!: string; - @Column({ nullable: true, type: String }) + @Column({ nullable: true, type: String, name: 'sra_http_endpoint' }) public sraHttpEndpoint!: string | null; - @Column({ nullable: true, type: String }) + @Column({ nullable: true, type: String, name: 'sra_ws_endpoint' }) public sraWsEndpoint!: string | null; - @Column({ nullable: true, type: String }) + @Column({ nullable: true, type: String, name: 'app_url' }) public appUrl!: string | null; // TODO(albrow): Add exchange contract or protocol version? // TODO(albrow): Add network ids for addresses? - @Column({ type: 'varchar', array: true }) + @Column({ type: 'varchar', array: true, name: 'fee_recipient_addresses' }) public feeRecipientAddresses!: string[]; - @Column({ type: 'varchar', array: true }) + @Column({ type: 'varchar', array: true, name: 'taker_addresses' }) public takerAddresses!: string[]; } |