import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

// Entities
import { Client } from './entities/client.entity';
import { Brand } from './entities/brand.entity';
import { Product } from './entities/product.entity';

// Services
import { ClientService } from './services/client.service';
import { BrandService } from './services/brand.service';
import { ProductService } from './services/product.service';

// Controllers
import { ClientController } from './controllers/client.controller';
import { BrandController } from './controllers/brand.controller';
import { ProductController } from './controllers/product.controller';

@Module({
  imports: [TypeOrmModule.forFeature([Client, Brand, Product])],
  controllers: [ClientController, BrandController, ProductController],
  providers: [ClientService, BrandService, ProductService],
  exports: [ClientService, BrandService, ProductService],
})
export class CrmModule {}
