Skip to content

archives

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDPrimary Key IDNOAuto Increment
plugin_fskeyvarchar(64)Related PluginNORelated field plugins->fskey
Which plugin created it
namevarchar(64)NameYESMultilingual
descriptiontextDescriptionYESMultilingual
codevarchar(32)CodeNOUnique,English letters only, no symbols or spaces supported
usage_typetinyint UNSIGNEDUsage TypeNO1.User / 2.Group / 3.Hashtag / 4.Post / 5.Comment
usage_group_idint UNSIGNEDUsed for group content0NORelated field groups->id
Related plugin's group, 0 means no
usage_group_content_typetinyint UNSIGNEDWhich group content type is usedYES1.Post / 2.Comment
form_elementvarchar(16)Form ElementNOHTML form element
element_typevarchar(16)Form Element TypeYESCorresponding type to form_element
element_optionsjsonOption Type Configuration ValueYESArray format, supports multilingual storage
Provides option values for select, checkbox, radio, etc.
file_typetinyint UNSIGNEDFile TypeYESform_element=input + element_type=file
Only used when the above two configurations match, used to declare the uploaded file type
1.Image / 2.Video / 3.Audio / 4.Document
is_multipletinyint UNSIGNEDIs Multiple0NO0.No / 1.Yes
Effective for select, email, file, etc.
is_requiredtinyint UNSIGNEDIs Required0NO0.No / 1.Yes
input_patternvarchar(128)Custom Regular ExpressionYES
input_maxsmallint UNSIGNEDMaximum ValueYES
input_minsmallint UNSIGNEDMinimum ValueYES
input_maxlengthsmallint UNSIGNEDMaximum LengthYES
input_minlengthsmallint UNSIGNEDMinimum LengthYES
input_sizesmallint UNSIGNEDSizeYES
input_stepsmallint UNSIGNEDStepYES
ratingsmallint UNSIGNEDSorting Order9NOAscending order
value_typevarchar(16)Data Value TypestringNOSame logic as the configuration table item_type field, supports file/plugin/plugins, etc.
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid / 1.Valid
Invalid after, all related are invalid
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Form Introduction

form_element Form Elementelement_type Element Typeelement_options Option Type Configuration Value
inputcheckbox
color
file
...
See the json array below, available for checkbox, radio, etc.
textarea
selectSee the json array below, available for select, multiple, etc.
...

element_options Option Type Configuration Value

json
[
    {"name": "IT", "value": 1},
    {"name": "Manufacturing", "value": 2},
    {"name": "Medical", "value": 3},
    {"name": "Finance", "value": 4},
    {"name": "Business", "value": 5},
    {"name": "Culture", "value": 6},
    {"name": "Art", "value": 7},
    {"name": "Law", "value": 8},
    {"name": "Education", "value": 9},
    {"name": "Administration", "value": 10}
]

Released under the Apache-2.0 License