{
  "name": "好友",
  "table": {
    "name": "friends",
    "comment": "好友关系表",
    "engine": "InnoDB"
  },
  "columns": [
    { "name": "id", "type": "ID" },
    {
      "label": "用户ID",
      "name": "user_id",
      "type": "bigInteger",
      "comment": "所属用户",
      "index": true
    },
    {
      "label": "好友用户ID",
      "name": "friend_id",
      "type": "bigInteger",
      "comment": "好友用户ID",
      "index": true
    },
    {
      "label": "类型",
      "name": "type",
      "type": "enum",
      "default": "monther",
      "option": ["monther", "father", "friend"],
      "comment": "类型 monther 母亲, father 父亲, friend 朋友",
      "index": true
    },
    {
      "label": "状态",
      "name": "status",
      "type": "enum",
      "default": "enabled",
      "option": ["enabled", "disabled"],
      "comment": "状态 enabled 开启, disabled 关闭",
      "index": true
    }
  ],
  "relations": {},
  "option": { "timestamps": true, "soft_deletes": true },
  "values": [
    {
      "user_id": 1,
      "friend_id": 2,
      "type": "monther"
    },
    {
      "user_id": 1,
      "friend_id": 3,
      "type": "father"
    },
    {
      "user_id": 2,
      "friend_id": 3,
      "type": "friend"
    }
  ]
}
