import { Module } from '@nestjs/common';
import { CustomerController } from './customer.controller';
import { CustomerService } from './customer.service';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmSharedModule } from '@app/typeorm';
import { Customer } from './customer.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { StaticFileModule } from '@app/static-file';
import { CustomerlogModule } from './customerlog/customerlog.module';
import { CustomerverificationsModule } from './customerverifications/customerverifications.module';
import { PaymentmethodsController } from './paymentmethods/paymentmethods.controller';
import { PaymentmethodsService } from './paymentmethods/paymentmethods.service';
import { PaymentmethodsModule } from './paymentmethods/paymentmethods.module';
import { CustomersavingsController } from './customersavings/customersavings.controller';
import { CustomersavingsService } from './customersavings/customersavings.service';
import { CustomersavingsModule } from './customersavings/customersavings.module';
import { CustomersavinglogModule } from './customersavinglog/customersavinglog.module';

@Module({
  imports: [
    ConfigModule.forRoot(),
    TypeOrmSharedModule,
    TypeOrmModule.forFeature([Customer]),
    StaticFileModule,
    CustomerlogModule,
    CustomerverificationsModule,
    PaymentmethodsModule,
    CustomersavingsModule,
    CustomersavinglogModule,
  ],
  controllers: [CustomerController],
  providers: [CustomerService],
})
export class CustomerModule {}
