Set an array of spells in a ScriptableObject

Hello everyone,
I have a scriptable object that i use to create weapons.

[CreateAssetMenu(fileName = "New weapon", menuName = "Weapon")]
public class WeaponData : ScriptableObject
{
    public string name_;
    public Sprite sprite;
    public bool ranged;
    public int energy;
}

I try to give each weapons 1 to 25 slots. In order to set spells in these slots.
I think the best solution is to use an array
My problem is that i don’t see how to do it.
Can you help me?

public SpellData[] spellSlots;

And then drag and drop the equivalent spell SOs in the inspector?