import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from './entities/user.entity';
import { OtpRequests } from '../otp_requests/entities/otp_requests.entity';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { RoleAccessEntity } from '../role_access/entities/role_access.entity';
import { RoleAccessService } from '../role_access/role_access.service';
import { ActivityLogsModule } from '../activity_logs/activity_logs.module';
import { SeekerRoleExperience } from '../seeker_role_experience/entities/seeker_role_experience.entity';
import { WalletModule } from '../wallet/wallet.module';
import { SeekerAddressModule } from '../seeker_address/seeker_address.module';
import { EmailModule } from '../email/email.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      UserEntity,
      OtpRequests,
      RoleAccessEntity,
      SeekerRoleExperience,
    ]),
    ActivityLogsModule,
    forwardRef(() => WalletModule),
    SeekerAddressModule,
    EmailModule,
  ],
  providers: [UserService, RoleAccessService],
  controllers: [UserController],
  exports: [UserService, TypeOrmModule],
})
export class UserModule {
  constructor() {
    // console.log('user');
  }
}

// import { Module } from '@nestjs/common';
// import { UserService } from './user.service';
// import { UserController } from './user.controller';
// import { UserEntity } from './entities/user.entity';
// import { TypeOrmModule } from '@nestjs/typeorm';
// import { CohortModule } from '../cohort/cohort.module';
// import { JwtAuthModule } from '../../jwt.module';

// @Module({
//   imports: [
//     TypeOrmModule.forFeature([UserEntity]),
//     CohortModule,
//     JwtAuthModule,
//   ],
//   controllers: [UserController],
//   providers: [UserService],
//   exports: [UserService],
// })
// export class UserModule {}
