import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { PostsModule } from '../posts/posts.module';
import { EngagementController } from './engagement.controller';
import { EngagementService } from './engagement.service';
import { EngagementEvent, EngagementEventSchema } from './schemas/engagement-event.schema';
import { PostPreference, PostPreferenceSchema } from './schemas/post-preference.schema';

@Module({
  imports: [PostsModule, MongooseModule.forFeature([
    { name: EngagementEvent.name, schema: EngagementEventSchema },
    { name: PostPreference.name, schema: PostPreferenceSchema },
  ])],
  controllers: [EngagementController], providers: [EngagementService], exports: [EngagementService],
})
export class EngagementModule {}
