import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoggingModule } from 'src/database/logging/logging.module';
import { Team } from 'src/teams/entities/team.entity';
import { TeamsModule } from 'src/teams/teams.module';
import { User } from 'src/users/entities/user.entity';
import { TeamWalletTransactionType } from './entities/team-wallet-transaction-type.entity';
import { TeamWalletTransaction } from './entities/team-wallet-transaction.entity';
import { TeamWalletTransactionsController } from './team-wallet-transactions.controller';
import { TeamWalletTransactionsService } from './team-wallet-transactions.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      User,
      TeamWalletTransaction,
      TeamWalletTransactionType,
      Team,
    ]),
    LoggingModule,
    TeamsModule,
  ],
  controllers: [TeamWalletTransactionsController],
  providers: [TeamWalletTransactionsService],
})
export class TeamWalletTransactionsModule {}
