I am developing a project in backbone, but I believe I am mixing concepts.
Basically I want to represent a model root (FRAME) which can hold objects (OBJECT) and objects may be of various types (Text, Image, Button etc). Each sub object has different attributes.
After studying the API, I'm trying to connect through a relational model but I believe this structure to be in serious trouble.
Basically, a frame may have many objects and an object can have a single frame. Each object may be of different types with different attributes.
What I started to do, was to represent the model frame and then create a model for each object type because they have different attributes. For the documentation, I noticed that there is no definition of attributes defaults in relationships. Should I just create a model object and instantiate the attributes of each type in the creation, or the concept of creating a model for each object type is correct?
Thank you.