Adding Properties
How to add properties in the model:


Once you are in the selected model, click on +Add Property
Add the name of the property
Select the type of the property. A property can be one of the basic types or a created model. (Example: You want only numbers, name or date and time)
Basic types of properties:

(i) text - it should only be simple text (ii) number - it should be a number (iii) email - it should be in an email ID format (iv) url - it should be in a URL/website format (v) description - when you want to have more text (vi) image - if you want it to add an image (vii) file - if you want to add a file (viii) date - date in dd/mm/yyyy format (ix) time - time in x format (x) datetime - if you want to have both the date and time (xi) any_one_of - when the value of the property has to be from a list of items (xii) many_of - when the value of the property is more than one and a part of a list of items (xiii) color - select a color (xiv) password (xv) boolean - true or false
Next, you can assign additional properties to the main property.

Additional properties:
(I) is_many: if multiple values for the same property must be stored Example: If you want to add multiple images a product, you must select the “is many” property.
(II) is_required: if a value is compulsory to create a particular model data. If this property value is undefined, the data will not be created. Example: If you want the name to be mandatory of a product, you must select the “is required” property.
(III) is_unique: a value must be unique across all the data for a particular model. Example: If you want the user's email to be unique and not be repeated in your database, you must select the “is unique” property.
(IV) is_json*: if you want a property to have sub-properties, use “is_json”. How to use is_json: a. When you want to store multiple values of a property in a model, create a new model with those properties b. In the type field select the model you have created as type. Example: Suppose you want to create an application to list down all the car manufacturers/brands, and you want to store all the cars from different brands. So each car will have its own sub-properties like price, colour, type of car and so on, then you must use is_json for the car property under the car manufacturer model.
(V) is_relation*: If data of one model must be linked to another model, a second model must be created, and then the property type of the first model must be set to the second model to create a relation. (Click on the “is_relation” checkbox) Example: if you want to create a social media platform, every post is liked/loved by multiple users, then the type of “liked_by” property of the post has to be “user” type, where “user” is another model and “is_relation” has to be set to true (Click on the “is_relation” checkbox) and “is_many” has to be checked too. *(if type is one of the selected models, this property is shown)
Click on the “Add” button and it will add the property that you have created.
Last updated
Was this helpful?