hormo studio
  • Getting Started
  • Introduction
    • How it works ?
    • Create Project
    • Playground
  • Models
    • Create model
    • Properties
    • Field types
    • UI Types
    • Options
    • Validations
    • Relations
    • Built-in User model
  • Database
    • Create Database
    • Connect to model
  • Restful API
    • Playground
    • Filters
    • Access Token
  • Dashboard
    • Usage
    • Manage users
    • Change Authentication
  • Monitoring
    • List of reports
    • Watch requests
  • Documentation
    • Export generated docs
  • Deployment
  • Licence
Powered by GitBook
On this page

Was this helpful?

  1. Models

Options

PreviousUI TypesNextValidations

Last updated 2 years ago

Was this helpful?

We have some kind of options for each model that you can set by checkboxes in the top section

Property

Type

Description

validateUpsert

Boolean

Set this property to true to ensure that returns an error when validation fails. Set this property to false to prevent from calling any validators at all.

allowEternalTokens

Boolean

Allow access tokens that never expire.

Generate Id

Boolean

Prevent Clients from setting the auto-generated ID value manually.

Id injection

Boolean

Whether to automatically add an id property to the model.

We have more options when you click on setting button for each property. Below modal shows additional options.

Key

Required

Type

Description

default

No

String

Default value is field name.

hidden

No

Boolean

Hidden model from admin dashboard and API.

defaultColumn

No

Boolean

Property can be default column in admin dashboard model list

Admin options

-

-

For each ui types you can set extra options based on your need. for example when you set your property ui type to slider we prepare range slider options you need and so on.

Validations