forked from cerc-io/snowballtools-base
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: cerc-io/snowballtools-base#19
27 lines
586 B
TypeScript
27 lines
586 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 })
|
|
minimumPayment!: string | null;
|
|
|
|
@Column('varchar', { nullable: true })
|
|
paymentAddress!: string | null;
|
|
|
|
@ManyToMany(() => Project, (project) => project.deployers)
|
|
projects!: Project[];
|
|
}
|