import { Module, forwardRef } from '@nestjs/common';
import { CatalogService } from './catalog.service';
import { CatalogController } from './catalog.controller';
import { UsersModule } from '../users/users.module';
import { ReservationsModule } from '../reservations/reservations.module';
import { ReviewsModule } from '../reviews/reviews.module';

@Module({
  imports: [
    UsersModule, // This provides UsersService
    forwardRef(() => ReservationsModule), // This provides ReservationsService
    ReviewsModule, // This provides ReviewsService
  ],
  controllers: [CatalogController],
  providers: [CatalogService],
  exports: [CatalogService], // Export for other modules to use
})
export class CatalogModule {}
