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

Properties

PreviousCreate modelNextField types

Last updated 2 years ago

Was this helpful?

You can easily add new property or delete it by trash icon button anytime. You have to know about each prop and options and how they works with below tables and instruction.

There are several props you can fill for each field that we can describe them all at the below table

Key

Required

Type

Description

Name

yes

String

Name of your field

default

No

any*

Default value for the property. The type must match that specified by type.

index

No

Boolean

Whether the property represents a column (field) that is a database index.

required

No

Boolean

Whether a value for the property is required. If true, then adding or updating a model instance requires a value for the property.Default is false.

type

Yes

String

Property type. Can be any type described in ​

uiType

No

String

Choose your field ui component type described in UI Field Types​

initial

No

Boolean

Property can be default column in admin dashboard model list

hidden

No

Boolean

Hidden model from admin dashboard

Validation

No

-

Set validations to the field. ​

Relation

No

-

Set relation to the field. ​

Field Types
validations instruction
relations instruction