import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { BlocksModule } from '../blocks/blocks.module';
import { NotificationsModule } from '../notifications/notifications.module';
import { PostsModule } from '../posts/posts.module';
import { UsersModule } from '../users/users.module';
import { CollaborationRequestsController } from './collaboration-requests.controller';
import { CollaborationRequestsService } from './collaboration-requests.service';
import { PostsCollaborationRequestsController } from './posts-collaboration-requests.controller';
import { UsersCollaborationRequestsController } from './users-collaboration-requests.controller';
import {
  CollaborationRequest,
  CollaborationRequestSchema,
} from './schemas/collaboration-request.schema';

@Module({
  imports: [
    BlocksModule,
    NotificationsModule,
    PostsModule,
    UsersModule,
    MongooseModule.forFeature([{ name: CollaborationRequest.name, schema: CollaborationRequestSchema }]),
  ],
  controllers: [
    CollaborationRequestsController,
    PostsCollaborationRequestsController,
    UsersCollaborationRequestsController,
  ],
  providers: [CollaborationRequestsService],
})
export class CollaborationRequestsModule {}
