import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { UsersModule } from '../users/users.module';
import { BlocksController } from './blocks.controller';
import { BlocksRepository } from './blocks.repository';
import { BlocksService } from './blocks.service';
import { Block, BlockSchema } from './schemas/block.schema';

@Module({
  imports: [UsersModule, MongooseModule.forFeature([{ name: Block.name, schema: BlockSchema }])],
  controllers: [BlocksController],
  providers: [BlocksService, BlocksRepository],
  exports: [BlocksService, BlocksRepository],
})
export class BlocksModule {}
