import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Achievement } from './achievement.entity';
import { PlayerAchievement } from './player-achievement.entity';
import { AchievementService } from './achievement.service';
import { AchievementController } from './achievement.controller';
import { AuthModule } from '../auth/auth.module';
import { Character } from '../character/entities/character.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Achievement, PlayerAchievement, Character]),
    AuthModule,
  ],
  controllers: [AchievementController],
  providers: [AchievementService],
  exports: [AchievementService],
})
export class AchievementModule {}
