import { Module, forwardRef } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Comment } from './entities/comment.entity'
import { CommentService } from './comment.service'
import { CommentController } from './comment.controller'
import { LikesModule } from 'src/likes/likes.module'
import { Likes } from 'src/likes/entities/likes.entity'
import { Moments } from 'src/moments/entities/moments.entity'
import { MomentsModule } from 'src/moments/moments.module'
import { ConditionModule } from 'src/condition/condition.module'

@Module({
    imports: [
        TypeOrmModule.forFeature([Comment, Likes, Moments]),
        LikesModule,
        MomentsModule,
        forwardRef(() => ConditionModule)
    ],
    controllers: [CommentController],
    providers: [CommentService],
    exports: [CommentService]
})
export class CommentModule {}
