Part of https://www.notion.so/Support-encrypted-config-for-deploy-laconic-com-18aa6b22d4728099bc64fc7a310b530d Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: #48
30 lines
658 B
TypeScript
30 lines
658 B
TypeScript
import { Entity, PrimaryColumn, Column, ManyToMany } from 'typeorm';
|
|
import { Project } from './Project';
|
|
|
|
@Entity()
|
|
export class Deployer {
|
|
@PrimaryColumn('varchar')
|
|
deployerLrn!: string;
|
|
|
|
@Column('varchar')
|
|
deployerId!: string;
|
|
|
|
@Column('varchar')
|
|
deployerApiUrl!: string;
|
|
|
|
@Column('varchar')
|
|
baseDomain!: string;
|
|
|
|
@Column('varchar', { nullable: true})
|
|
publicKey!: string | null;
|
|
|
|
@Column('varchar', { nullable: true })
|
|
minimumPayment!: string | null;
|
|
|
|
@Column('varchar', { nullable: true })
|
|
paymentAddress!: string | null;
|
|
|
|
@ManyToMany(() => Project, (project) => project.deployers)
|
|
projects!: Project[];
|
|
}
|