There is no way to define an array of objects and define the structure of the objects.
In this example, I want to define the structure of the objects in the array so I can later define relations between the table and other tables. The logic should be that the object defined in the array will be the structure of all the objects in the array.
As a workaround for now, I am making an object of objects instead of an array of objects, and I am creating a note about it.
There is no way to define an array of objects and define the structure of the objects.
In this example, I want to define the structure of the objects in the array so I can later define relations between the table and other tables. The logic should be that the object defined in the array will be the structure of all the objects in the array.
As a workaround for now, I am making an object of objects instead of an array of objects, and I am creating a note about it.