Skip to content

configs

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDPrimary Key IDNOAuto Increment
item_keyvarchar(64)Key NameNOUnique
item_valuelongtextKey ValueYES
item_typevarchar(16)Key TypestringNO
is_multilingualtinyint UNSIGNEDIs Multilingual0NO0. No / 1. Yes
is_customtinyint UNSIGNEDIs Custom1NO0. No / 1. Yes
0 means system-built, 1 means added by app
is_apitinyint UNSIGNEDIs API Output0NO0. Forbidden / 1. Allowed
created_attimestampCreate TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Key Type item_type

Based on JSON data type, extended with three types: file, plugin, and plugins.

file type: If the key value is a number, it represents the file ID, and the file URL is output with the ID. Otherwise, it represents the file URL and is output as is.

plugin type represents the plugin fskey value, and the plugin URL is output with the fskey.

plugins type represents multiple selected plugins, stored in Array format, replacing the fskey with the URL to output the plugin URL.

json
// plugins format
[
    {
        "code": "code",
        "name": {
            "en": "",
            "zh-Hans": ""
        },
        "fskey": "fskey",
        "order": 1
    }
]

plugins need to determine whether apps->app_host has a value; if it has a value, the app table's app_host + access_path fields are concatenated into a complete URL; if it has no value, the .env APP_URL + apps->access_path field are concatenated into a complete URL.

  • number
  • string
  • boolean
  • array
  • object
  • file
  • plugin
  • plugins

For file, plugin, and plugins types of key values, the corresponding URL needs to be output.

Released under the Apache-2.0 License