import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PodcastEpisode } from './entities/podcast-episode.entity';
import { PodcastService } from './podcast.service';
import { PodcastController } from './podcast.controller';
import { KnowledgeGroup } from '../knowledge-group/knowledge-group.entity';
import { ChatModule } from '../chat/chat.module';

@Module({
    imports: [
        TypeOrmModule.forFeature([PodcastEpisode, KnowledgeGroup]),
        ChatModule, // Import ChatModule to use ChatService
    ],
    controllers: [PodcastController],
    providers: [PodcastService],
    exports: [PodcastService],
})
export class PodcastModule { }
