Help
Academy
  • INTRODUCTION
  • About Reasy
  • Why Choose Reasy?
  • User Registration
  • Invite & Manage Users
  • GETTING STARTED
    • Create Your First App
    • App Dashboard
    • Workspace
      • Engine Explorer
      • Navigation Explorer
      • Canvas
      • Tools
        • Screen Components
          • Input Elements
          • Containers
          • Texts
          • Buttons
          • Charts
          • Grids
          • Cards
          • Files & Images
          • Custom Components
          • Pre-built Screens
        • Custom Screen Components
        • BPMN Components
        • Data-Driven Plugins
          • Data Sources
            • SQL Plugin
            • Session Plugin
            • MakeServerURL
            • PrivatePDM
            • Logout
            • MethodInvoker
            • UMPlugin
            • APIConsumer
            • EmailReaderPlugin
            • FileReaderPlugin
            • FileWriterPlugin
            • FileDownloadPlugin
            • FileUtils
            • PropertyReader
            • DateUtils
            • JsonUtils
            • JoinPlugin
            • EncryptDecrypt
            • StringUtils
          • Data Display
          • Business Tools
      • Property Editor
        • General Properties
        • Design Properties
    • Engines
      • Screens
        • Responsive Grid System
        • Building App Layout
        • Building Screens
        • Creating Pop-up Screens
        • Events and Actions
        • Importing Screens
          • Importing an HTML
          • Importing a Figma Screen
          • Importing a PDF
          • Importing a Screenshot
          • Importing a Hand-drawn Sketch
          • Text to Screen
        • Manage Screens
      • Data Modeler
        • Setting up a Data Source
        • Creating a Model
          • Adding Computational Formula
          • Adding Validations
        • Importing a Data Model
        • Entity Relationships
        • Exporting a Data Model
      • APIs
        • A Step-by-Step Guide to Build an API
        • Creating an API Service
        • API Configuration
        • Publishing API
        • API Authentication
        • Consuming REST APIs
        • Manage API Services
      • Navigation
        • Layout Setup
        • Creating Microapps
        • Manage Microapps
      • Page
      • Workflow
        • Creating Workflows
        • Workflow Templates
        • Optimizing Complex Workflows
        • Manage Workflows
      • User Management
        • Users
        • Roles
        • Policies
        • Password Policies
        • Data Rules
      • Resources
      • Languages
        • Translating App Language
        • Manage Languages
    • App Management
Powered by GitBook
On this page
  • Create Entities
  • Add Attributes

Was this helpful?

  1. GETTING STARTED
  2. Engines
  3. Data Modeler

Creating a Model

PreviousSetting up a Data SourceNextAdding Computational Formula

Last updated 1 year ago

Was this helpful?

The Data Modeler engine in Reasy helps you define the structure of your data. This article details the process of creating a data model from scratch.

Start by creating a model. To create,

  • Open the Data Modeler engine and click '' in the Navigation Explorer.

  • Give a name to the data model, and there you go.

Now, create entities (tables) to store your data. Also, if you have any pre-built entities, you can them here, based on your needs.

Create Entities

Understand Virtual and Physical Entities

When you create an entity, it is stored as a template and referred to as a Virtual Entity. As these entities are just templates and not saved in any database, you cannot perform CRUD operations in real time. To do so, you’ll have to persist your entities associated with your app before you launch it; to make them accessible. By persisting, you’ll save your data to Reasy’s database which is called Physical Entity.

You can easily differentiate virtual and physical entities by the icons appended to entities in the Navigation Explorer.

To create an entity,

  • Right-click the model and select Add Entity.

  • Give the entity a name.

You can save them as physical entities by enabling “Save as Physical Entity”. You also have an option for adding more entities. Check the option () before you an entity, it will save you from repeating the same process for creating another entity.

Alternatively, you can add an entity by clicking ‘+’, next to the model you created. Entities get vadded with default names: entity1, entity2, and so on; so it's a good practice to rename them as you add them.

Moreover, you are facilitated with a few prebuilt entities such as products, orders, students, and more. To import them, right-click and select Prebuilt Entities, then choose the entity(s) you wish to import.

Likewise, create/import the entities required for your app data.

Next, add attributes to the entity created.

Add Attributes

Attributes are the columns in your. Every entity that you create will have a few attributes such as, "CreatedDate", "ModifiedDate", and "UniqueId" with appropriate data types.

To add an attribute,

  • Right-click the entity and select Add Attribute.

  • Give it a unique name and select the data type.

  • If it’s a key attribute, mark it as a key attribute.

  • If it’s used for computations, mark it as a computation attribute, and provide a default, minimum, and maximum values. And, define the computation formula.

  • Add validations to the user inputs; that you may require to validate the entries as they come in. To add condition-based validations, turn on the option, and add conditions. You get the expression as you start setting the validation rules. Once done, test these validations using Test to see how those work.

Tip: Alternatively, you can add attributes by clicking ‘+’ next to Attributes in an entity on the canvas.

Note: Do not enter any spaces between the characters when you name an attribute. An attribute can be set either as a “Key Attribute” or as a “Computation Attribute.”

Likewise, add all the attributes that you need in your entity.

Note: Do not add any spaces between the characters when you name a model.

When you add an attribute, the services needed to perform CRUD operations on that attribute will get created by default. However, you can edit them if they aren’t the key attributes. Aside from these, you can as and when you need them.

add services
import