Sign Up

What is a model?

A model serves as a data structure utilized across various Twidget resources. It consists of fields, each capable of holding different data types, such as text, numbers, booleans, lists, and other models.

Models can be employed as data types for variables and parameters in classes, as well as request and response bodies for endpoints.

Data Storage

To enable data storage, you can create a datastore for a model, making it visible in the data store navigation menu.

Models with data stores can be stored and retrieved within class functions.

Deleting a data store requires simultaneous deletion of the associated model.

Related Topics