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 { Save, SaveSchema } from './schemas/save.schema';
import { SavesController } from './saves.controller';
import { SavesRepository } from './saves.repository';
import { SavesService } from './saves.service';

@Module({
  imports: [
    MongooseModule.forFeature([{ name: Save.name, schema: SaveSchema }]),
    PostsModule,
    NotificationsModule,
    BlocksModule,
  ],
  controllers: [SavesController],
  providers: [SavesService, SavesRepository],
  exports: [SavesService, SavesRepository],
})
export class SavesModule {}
