import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Material } from './material.entity';
import { CharacterMaterial } from './character-material.entity';
import { MaterialService } from './material.service';
import { MaterialController } from './material.controller';
import { AuthModule } from '../auth/auth.module';
import { Character } from '../character/entities/character.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Material, CharacterMaterial, Character]), AuthModule],
  controllers: [MaterialController],
  providers: [MaterialService],
  exports: [MaterialService, TypeOrmModule],
})
export class MaterialModule {}
