Field Types
Basic Types
| Type |
Description |
Attributes |
varchar |
Text |
maxLength, trim |
text |
Long text |
rowsMin, rowsMax |
int |
Integer |
min, max |
float |
Decimal number |
min, max, decimalPlaces |
bool |
Boolean |
default |
date |
Date |
useNumericFormat |
datetime |
Date & time |
minuteStep |
enum |
Single choice |
options, default, isSorted |
enumMulti |
Multi choice |
options, default |
Special Types
| Type |
Description |
Attributes |
link |
Relation to entity |
entity, audited |
linkMultiple |
Multiple relation |
entity |
linkParent |
Polymorphic relation |
entityList |
file |
File |
accept, maxSize |
attachmentMultiple |
Multiple files |
accept, maxSize |
image |
Image |
previewSize |
address |
Address |
- |
currency |
Currency |
conversionDisabled |
autoincrement |
Auto number |
pattern |
foreign |
Foreign field |
link, field |
Field Definition Examples
fields:
# Text field
name:
type: "varchar"
label: "Name"
required: true
maxLength: 255
trim: true
# Enum with colors
status:
type: "enum"
label: "Status"
options:
- value: "New"
label: "New"
color: "#17a2b8"
style:
fontWeight: "bold"
- value: "InProgress"
label: "In progress"
color: "#ffc107"
- value: "Completed"
label: "Completed"
color: "#28a745"
default: "New"
required: true
audited: true
# Link to another entity
account:
type: "link"
label: "Account"
entity: "Account"
required: true
audited: true
# Currency
amount:
type: "currency"
label: "Amount"
min: 0
decimalPlaces: 2
currencyField: "currency"
# Auto-increment number
number:
type: "autoincrement"
label: "Number"
pattern: "SRV-{YYYY}-{0000}"
readonly: true
➡️ Continue with Workflow.