Rename table and column names

This commit is contained in:
Alex Browne
2018-11-08 10:53:18 -08:00
parent ccad046eb6
commit 53cc9e9bed
10 changed files with 172 additions and 98 deletions

View File

@@ -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[];
}