Skip to content

Attributes ​

attributes 节点指定自定义实体的属性列表。

示例 ​

简单配置示例:

yaml
storage:
  entities:
    - name: employees
      attributes:
        - name: name
          type: string
          required: true
          default: ""
        - name: age
          type: number

属性 ​

实体的每个属性,都可以指定以下参数:

属性必填描述
nameY指定属性的名称
typeY指定属性的类型,支持: - number - string - boolean - array - object
required指定属性是否不能为空
default指定属性的默认值

举报邮箱:abuse@worktile.com