{
  "name": "用户角色",
  "table": {
    "name": "user_roles",
    "comment": "用户角色关系表",
    "engine": "InnoDB"
  },
  "columns": [
    { "name": "id", "type": "ID" },
    {
      "label": "用户ID",
      "name": "user_id",
      "type": "bigInteger",
      "comment": "所属用户",
      "index": true
    },
    {
      "label": "角色ID",
      "name": "role_id",
      "type": "bigInteger",
      "comment": "角色ID",
      "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, "role_id": 1 },
    { "user_id": 1, "role_id": 2 },
    { "user_id": 2, "role_id": 3 },
    { "user_id": 2, "role_id": 4 },
    { "user_id": 3, "role_id": 1 }
  ]
}
