{
  "name": "服务类型",
  "table": {
    "name": "kind",
    "comment": "服务类型",
    "engine": "InnoDB"
  },
  "columns": [
    { "name": "id", "type": "ID" },
    {
      "name": "category_id",
      "type": "integer",
      "length": 128,
      "comment": "gw_category ID(废弃)",
      "nullable": true,
      "index": true
    },
    {
      "name": "type_id",
      "type": "integer",
      "length": 128,
      "comment": "gw_type ID(废弃)",
      "nullable": true,
      "index": true
    },
    {
      "name": "name",
      "type": "string",
      "comment": "名称",
      "index": true
    },
    {
      "name": "parent",
      "type": "bigInteger",
      "length": 128,
      "comment": "父类型ID",
      "nullable": false,
      "default": 0,
      "index": true
    },
    {
      "name": "status",
      "type": "enum",
      "option": ["enabled", "disabled"],
      "comment": "状态 enabled 开启, disabled 关闭",
      "default": "enabled",
      "index": true
    },
    {
      "name": "rank",
      "type": "bigInteger",
      "length": 128,
      "comment": "排序",
      "nullable": false,
      "default": 9999,
      "index": true
    }
  ],
  "relations": {
    "parent": {
      "type": "hasOne",
      "key": "parent",
      "model": "Kind",
      "foreign": "id"
    },
    "children": {
      "type": "hasMany",
      "key": "id",
      "model": "Kind",
      "foreign": "parent"
    },
    "nodes": {
      "type": "treeNodes",
      "key": "id",
      "model": "Kind",
      "parent": "parent",
      "max_level": 256
    }
  },
  "option": { "timestamps": true, "soft_deletes": true },
  "values": [
    {
      "id": 1,
      "name": "云服务",
      "category_id": null,
      "type_id": null,
      "rank": 1,
      "parent": 0
    },

    {
      "id": 2,
      "name": "基础服务",
      "category_id": null,
      "type_id": null,
      "rank": 1,
      "parent": 1
    },
    {
      "id": 3,
      "name": "云主机",
      "category_id": null,
      "type_id": 4,
      "rank": 1,
      "parent": 2
    },
    {
      "id": 4,
      "name": "对象存储",
      "category_id": null,
      "type_id": 5,
      "rank": 2,
      "parent": 2
    },
    {
      "id": 5,
      "name": "云数据库",
      "category_id": null,
      "type_id": 6,
      "rank": 3,
      "parent": 2
    },
    {
      "id": 6,
      "name": "块存储",
      "category_id": null,
      "type_id": 7,
      "rank": 4,
      "parent": 2
    },
    {
      "id": 7,
      "name": "应用托管容器",
      "category_id": null,
      "type_id": 8,
      "rank": 5,
      "parent": 2
    },
    {
      "id": 8,
      "name": "云缓存",
      "category_id": null,
      "type_id": 9,
      "rank": 6,
      "parent": 2
    },
    {
      "id": 9,
      "name": "本地负载均衡",
      "category_id": null,
      "type_id": 10,
      "rank": 7,
      "parent": 2
    },
    {
      "id": 10,
      "name": "全局负载均衡",
      "category_id": null,
      "type_id": 13,
      "rank": 8,
      "parent": 2
    },
    {
      "id": 11,
      "name": "云分发",
      "category_id": null,
      "type_id": 11,
      "rank": 9,
      "parent": 2
    },
    {
      "id": 12,
      "name": "企业级SaaS",
      "category_id": null,
      "type_id": 12,
      "rank": 10,
      "parent": 2
    },
    {
      "id": 13,
      "name": "云桌面",
      "category_id": null,
      "type_id": 14,
      "rank": 11,
      "parent": 2
    },
    {
      "id": 14,
      "name": "云备份",
      "category_id": null,
      "type_id": 17,
      "rank": 12,
      "parent": 2
    },
    {
      "id": 15,
      "name": "GPU云主机",
      "category_id": null,
      "type_id": 18,
      "rank": 13,
      "parent": 2
    },
    {
      "id": 16,
      "name": "物理云主机",
      "category_id": null,
      "type_id": 20,
      "rank": 14,
      "parent": 2
    },
    {
      "id": 17,
      "name": "智能云",
      "category_id": 41,
      "type_id": null,
      "rank": 2,
      "parent": 2
    },

    {
      "id": 18,
      "name": "软件和开发",
      "category_id": null,
      "type_id": null,
      "rank": 2,
      "parent": 0
    },
    {
      "id": 19,
      "name": "虚拟化及管理",
      "category_id": 59,
      "type_id": null,
      "rank": 1,
      "parent": 18
    },
    {
      "id": 20,
      "name": "容器解决方案",
      "category_id": 65,
      "type_id": null,
      "rank": 2,
      "parent": 18
    },
    {
      "id": 21,
      "name": "微服务解决方案",
      "category_id": 76,
      "type_id": null,
      "rank": 3,
      "parent": 18
    },
    {
      "id": 22,
      "name": "serverless解决方案",
      "category_id": 82,
      "type_id": null,
      "rank": 4,
      "parent": 18
    },
    {
      "id": 23,
      "name": "云管理和云运营",
      "category_id": null,
      "type_id": null,
      "rank": 3,
      "parent": 0
    },
    {
      "id": 24,
      "name": "混合云",
      "category_id": null,
      "type_id": null,
      "rank": 1,
      "parent": 23
    },
    {
      "id": 25,
      "name": "混合云解决方案",
      "category_id": 88,
      "type_id": null,
      "rank": 1,
      "parent": 24
    },
    {
      "id": 26,
      "name": "混合云安全",
      "category_id": 671,
      "type_id": null,
      "rank": 2,
      "parent": 24
    },
    {
      "id": 27,
      "name": "多云管理",
      "category_id": 94,
      "type_id": null,
      "rank": 2,
      "parent": 23
    },
    {
      "id": 28,
      "name": "金牌运维",
      "category_id": 120,
      "type_id": null,
      "rank": 3,
      "parent": 23
    },
    {
      "id": 29,
      "name": "研发运营一体化",
      "category_id": 443,
      "type_id": null,
      "rank": 4,
      "parent": 23
    },
    {
      "id": 30,
      "name": "MSP",
      "category_id": 112,
      "type_id": null,
      "rank": 5,
      "parent": 23
    },
    {
      "id": 31,
      "name": "安全与保险",
      "category_id": null,
      "type_id": null,
      "rank": 4,
      "parent": 0
    },
    {
      "id": 32,
      "name": "风险管理",
      "category_id": 141,
      "type_id": null,
      "rank": 1,
      "parent": 31
    },
    {
      "id": 33,
      "name": "云服务用户数据保护",
      "category_id": 152,
      "type_id": null,
      "rank": 2,
      "parent": 31
    },
    {
      "id": 34,
      "name": "业务风控",
      "category_id": null,
      "type_id": null,
      "rank": 3,
      "parent": 31
    },
    {
      "id": 35,
      "name": "内容安全",
      "category_id": 159,
      "type_id": null,
      "rank": 1,
      "parent": 34
    },
    {
      "id": 36,
      "name": "反交易欺诈",
      "category_id": 164,
      "type_id": null,
      "rank": 2,
      "parent": 34
    },
    {
      "id": 37,
      "name": "反信贷欺诈",
      "category_id": 165,
      "type_id": null,
      "rank": 3,
      "parent": 34
    },
    {
      "id": 38,
      "name": "反营销欺诈",
      "category_id": 166,
      "type_id": null,
      "rank": 4,
      "parent": 34
    },
    {
      "id": 39,
      "name": "反钓鱼欺诈",
      "category_id": 167,
      "type_id": null,
      "rank": 5,
      "parent": 34
    },
    {
      "id": 40,
      "name": "云主机安全",
      "category_id": 184,
      "type_id": null,
      "rank": 4,
      "parent": 31
    },
    {
      "id": 41,
      "name": "态势感知",
      "category_id": 190,
      "type_id": null,
      "rank": 5,
      "parent": 31
    },
    {
      "id": 42,
      "name": "云保险",
      "category_id": 272,
      "type_id": null,
      "rank": 6,
      "parent": 31
    },
    {
      "id": 43,
      "name": "云网&云边",
      "category_id": null,
      "type_id": null,
      "rank": 5,
      "parent": 0
    },
    {
      "id": 44,
      "name": "云平台网络能力",
      "category_id": 102,
      "type_id": null,
      "rank": 1,
      "parent": 43
    },
    {
      "id": 45,
      "name": "SD-WAN",
      "category_id": 106,
      "type_id": null,
      "rank": 2,
      "parent": 43
    },
    {
      "id": 46,
      "name": "物联网",
      "category_id": 234,
      "type_id": null,
      "rank": 3,
      "parent": 43
    },
    {
      "id": 47,
      "name": "行业云",
      "category_id": null,
      "type_id": null,
      "rank": 6,
      "parent": 0
    },
    {
      "id": 48,
      "name": "政务",
      "category_id": null,
      "type_id": null,
      "rank": 1,
      "parent": 47
    },
    {
      "id": 49,
      "name": "政务云综合水平评估",
      "category_id": 215,
      "type_id": null,
      "rank": 1,
      "parent": 48
    },
    {
      "id": 50,
      "name": "可信政务云评估",
      "category_id": 216,
      "type_id": null,
      "rank": 2,
      "parent": 48
    },
    {
      "id": 51,
      "name": "金融",
      "category_id": 225,
      "type_id": null,
      "rank": 2,
      "parent": 47
    },
    {
      "id": 52,
      "name": "开源治理",
      "category_id": null,
      "type_id": null,
      "rank": 7,
      "parent": 0
    },
    {
      "id": 53,
      "name": "面向开源用户企业",
      "category_id": 196,
      "type_id": null,
      "rank": 1,
      "parent": 52
    },
    {
      "id": 54,
      "name": "面向自发开源企业",
      "category_id": 202,
      "type_id": null,
      "rank": 2,
      "parent": 52
    },
    {
      "id": 55,
      "name": "开源项目评估",
      "category_id": 711,
      "type_id": null,
      "rank": 3,
      "parent": 52
    },
    {
      "id": 56,
      "name": "开源工具评估",
      "category_id": 720,
      "type_id": null,
      "rank": 4,
      "parent": 52
    },
    {
      "id": 57,
      "name": "检测平台",
      "category_id": null,
      "type_id": null,
      "rank": 8,
      "parent": 0
    },
    {
      "id": 58,
      "name": "云主机分级",
      "category_id": 371,
      "type_id": null,
      "rank": 1,
      "parent": 57
    },
    {
      "id": 59,
      "name": "监管支撑",
      "category_id": null,
      "type_id": null,
      "rank": 9,
      "parent": 0
    },
    {
      "id": 60,
      "name": "企业上云效果成熟度",
      "category_id": 250,
      "type_id": null,
      "rank": 1,
      "parent": 59
    },
    {
      "id": 61,
      "name": "综合信用评估",
      "category_id": null,
      "type_id": null,
      "rank": 2,
      "parent": 59
    },
    {
      "id": 62,
      "name": "云服务企业",
      "category_id": 261,
      "type_id": null,
      "rank": 1,
      "parent": 61
    },
    {
      "id": 63,
      "name": "CDN服务企业",
      "category_id": 271,
      "type_id": null,
      "rank": 2,
      "parent": 61
    }
  ]
}
