import { Module } from '@nestjs/common';
import { SystemSettingsController } from './system-settings.controller';
import { SystemSettingsService } from './system-settings.service';

/**
 * SystemSettingsModule provides database-backed configuration management.
 *
 * - PrismaModule and CommonModule (which exports EncryptionService) are
 *   registered as @Global() in the root AppModule, so they are available
 *   here without explicit imports.
 * - SystemSettingsService is exported so other feature modules can inject
 *   it and call getValue() / getTypedValue() for runtime configuration.
 */
@Module({
  controllers: [SystemSettingsController],
  providers: [SystemSettingsService],
  exports: [SystemSettingsService],
})
export class SystemSettingsModule {}
