HOWTO: Add new structure variants

Hello. I just started getting into modding and am planning on reading and watching as much as I can on it before I get started on my first mod. I have a question for before I do get started. If an item doesn’t have an inventory, how would I go about adding an inventory to it, like the bear trap, for example?