EntityIndex 实体索引
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface EntityIndex {
"concept": "EntityIndex", // 产品概念
"name": string, // 实体索引名称
"indexName": string, // 数据库索引名
"propertyNames": Array<string>, // propertyNames
"unique": boolean, // 是否唯一
"description": string, // 实体索引描述
}
class EntityIndexTreeNode {
ConceptEnum concept; // 产品概念
String name; // 实体索引名称
String indexName; // 数据库索引名
List<String> propertyNames; // propertyNames
boolean unique; // 是否唯一
String description; // 实体索引描述
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/EntityIndex",
"definitions": {
"EntityIndex": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "EntityIndex"
},
"name": {
"type": "string"
},
"indexName": {
"type": "string"
},
"propertyNames": {
"type": "array",
"items": {
"type": "string"
}
},
"unique": {
"type": "boolean"
},
"description": {
"type": "string"
}
},
"required": [
"concept",
"name",
"indexName",
"propertyNames",
"unique",
"description"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "EntityIndex",
"name": "index1",
"indexName": "index1_dc56405c",
"propertyNames": [
"name",
"createdTime"
],
"unique": true,
"description": "某属性的索引"
}
concept: EntityIndex
name: index1
indexName: index1_dc56405c
propertyNames:
- name
- createdTime
unique: true
description: 某属性的索引