import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Character } from './entities/character.entity';
import { LevelThreshold } from './entities/level-threshold.entity';
import { CharacterController } from './character.controller';
import { CharacterService } from './character.service';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Character, LevelThreshold]),
    AuthModule, // pour AuthGuard + User repository
  ],
  controllers: [CharacterController],
  providers: [CharacterService],
})
export class CharacterModule {}
