Skip to Content
🎉 New release with new features and improvements! V0.0.4 Release →

Types

Types are the types that are used to idenify the type of your entity columns and validate the data.

to manage your types you can use the Types page in the admin panel:

Types Page

Create a Type

to create a type you can use the Create button in the Types page, and you will get a form to fill the type details:

Create Type

Type Details

FieldDescriptionrequireddefault
NameThe name of the type (will used as a reference to the type)yes~
LabelThe label of the type (will used as a label to the type)yes~
Base TypeThe base type of the type (string/number/boolean/array/object/Date)yes~
SchemaThe schema of the type (usefal for objects and arrays)no~

Meta Information (Optional)

FieldDescriptionrequireddefault
DescriptionThe description of the type (will used as a description to the type)no~
PatternThe foramt the type should followno~
Max Lengthmaximum length of the text types (only for string type)no~
Min Lengthminimum length of the text types (only for string type)no~
Max Valuemaximum value of the number types (only for number type)no~
Min Valueminimum value of the number types (only for number type)no~

Core Types

BSH Engine provides a set of core types that you can use:

TypeDescription
Text
charChar
longtextLongText
mediumtextMediumText
stringString
textText
tinytextTinyText
varcharVarchar
emailEmail
phonePhone
Number
bigintBigInt
bitBit
decimalDecimal
doubleDouble
floatFloat
integerInteger
smallintSmallInt
tinyintTinyInt
percentagePercentage
pricePrice
Boolean
booleanBoolean (true/false)
Other
arrayArray
DateDate
jsonJSON
objectObject