import { Module, forwardRef } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Moments } from 'src/moments/entities/moments.entity'
import { Comment } from 'src/comment/entities/comment.entity'
import { MomentsModule } from 'src/moments/moments.module'
import { ConditionController } from './condition.controller'
import { ConditionService } from './condition.service'
import { Condition } from './entities/condition.entity'
import { CommentModule } from 'src/comment/comment.module'
import { ChatModule } from 'src/chat/chat.module'

@Module({
    imports: [
        TypeOrmModule.forFeature([Condition, Moments, Comment]),
        MomentsModule,
        forwardRef(() => CommentModule),
        ChatModule
    ],
    controllers: [ConditionController],
    providers: [ConditionService],
    exports: [ConditionService]
})
export class ConditionModule {}
