import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { GenomeController } from './genome.controller';
import { GenomeService } from './genome.service';
import { GenomeRequestModel } from './entities/genome-request.entity';
import { GenomeTraitDetailModel } from './entities/genome-trait-detail.entity';
import { CowModel } from '../cow/entities/cow.entity';
import { FarmModel } from '../farm/entities/farm.entity';
import { MptModel } from '../mpt/entities/mpt.entity';
import { GeneDetailModel } from '../gene/entities/gene-detail.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      GenomeRequestModel,
      GenomeTraitDetailModel,
      CowModel,
      FarmModel,
      MptModel,
      GeneDetailModel,
    ]),
  ],
  controllers: [GenomeController],
  providers: [GenomeService],
  exports: [GenomeService],
})
export class GenomeModule {}
