import { Entity, PrimaryColumn, Column, ManyToMany } from 'typeorm';
import { Project } from './Project';

@Entity()
export class Deployer {
  @PrimaryColumn('varchar')
    deployerId!: string;

  @Column('varchar')
    deployerLrn!: string;

  @Column('varchar')
    deployerApiUrl!: string;

  @Column('varchar')
    baseDomain!: string;

  @ManyToMany(() => Project, (project) => project.deployers)
    projects!: Project[];
}
