import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoggingModule } from 'src/database/logging/logging.module';
import { Player } from 'src/players/entities/player.entity';
import { Transaction } from 'src/transactions/entitites/transaction.entity';
import { Team } from 'src/teams/entities/team.entity';
import { TeamsModule } from 'src/teams/teams.module';
import { RecurringTransactionsController } from './recurring-transactions.controller';
import { RecurringTransaction } from './entities/recurring-transaction.entity';
import { RecurringTransactionsScheduler } from './recurring-transactions.scheduler';
import { RecurringTransactionsService } from './recurring-transactions.service';

@Module({
  controllers: [RecurringTransactionsController],
  providers: [RecurringTransactionsService, RecurringTransactionsScheduler],
  imports: [
    TypeOrmModule.forFeature([Team, RecurringTransaction, Player, Transaction]),
    TeamsModule,
    LoggingModule,
  ],
})
export class RecurringTransactionsModule {}
