import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Item } from './item.entity';
import { CharacterItem } from './character-item.entity';
import { ItemService } from './item.service';
import { ItemController } from './item.controller';
import { AuthModule } from '../auth/auth.module';
import { Character } from '../character/entities/character.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Item, CharacterItem, Character]), AuthModule],
  controllers: [ItemController],
  providers: [ItemService],
  exports: [ItemService, TypeOrmModule],
})
export class ItemModule {}
