import { Module } from '@nestjs/common';
import { BuildResolver } from './build.resolver';
import { MongooseModule } from '@nestjs/mongoose';
import { BuildSchema, BuildIbanSchema } from '@/models/build.model';
import { BuildService } from './build.service';
import { BuildAreaSchema } from '@/models/build-area.model';
import { CompanySchema } from '@/models/company.model';
import { PersonSchema } from '@/models/person.model';
import { BuildTypesSchema } from '@/models/build-types.model';

@Module({
  imports: [MongooseModule.forFeature([
    { name: 'Build', schema: BuildSchema }, { name: 'BuildArea', schema: BuildAreaSchema }, { name: 'BuildIban', schema: BuildIbanSchema },
    { name: 'Company', schema: CompanySchema }, { name: 'Person', schema: PersonSchema }, { name: 'BuildTypes', schema: BuildTypesSchema },
  ])],
  providers: [BuildResolver, BuildService]
})
export class BuildModule { }
