# New Model

- 1Model Type
- 2Model Fields
- 3Optional Properties
- 4Review & Test

Model Name The name of your model. This name must be unique across all of your models.
Model Type
Connector
Source Model

#### Select Fields to Inherit

#### Add New Field

Select single field from existing model Map new field to entire model Create new field
Field Source Model
Model Field:
Field Name:
Data Type
f

#### Model Fields

- Model has no fields

Note: Composite models with a join require at least two unique models in their field list.
Field Description
Field Default Value
Custom Field field is derived and does not exist in data source
Field value is required
Field value is readonly
Add Field Functions
Single Row Response Key (optional)
Multi-Row Response Key (optional)
Generate API endpoints for these methods:
Create Read Update Delete Delete All

#### Here is the code that will be generated for your new model

#### Define Parent Model

Parent Model
Join Field
Join Type

#### Add Child Models

Child Model
Join Property
f
All join tables have been used. To edit or add a new join, remove one below.

#### Joins

- Model has no joins

####

#### View Inherited Fields

#### Validator Function

function validate(value) { // logic here // return null or undefined if successful // return an string (error message) if fails }

#### Custom Request Value Function

function set(value,key,model) { // val is current value // key is the property key // model is the model instance return value; }

#### Custom Response Value Function

function get(value,key,model) { // val is current value // key is the property key // model is the model instance return value; }

#### Saving Changes

Saving your model and restarting the server...