import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TransactionType } from './entitites/transaction-type.entity';
import { Transaction } from './entitites/transaction.entity';
import { TransactionsService } from './transactions.service';
import { TransactionsController } from './transactions.controller';
import { Player } from 'src/players/entities/player.entity';
import { User } from 'src/users/entities/user.entity';
import { TeamSetting } from 'src/team-settings/entities/team-setting.entity';
import { LoggingModule } from 'src/database/logging/logging.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      TransactionType,
      Transaction,
      Player,
      User,
      TeamSetting,
    ]),
    LoggingModule,
  ],
  providers: [TransactionsService],
  controllers: [TransactionsController],
})
export class TransactionsModule {}
