完善保险端前后端和养殖端小程序
This commit is contained in:
@@ -119,15 +119,15 @@ class ElectronicFence extends BaseModel {
|
||||
}
|
||||
|
||||
/**
|
||||
* 定义关联关系
|
||||
* 定义关联关系(已在 models/index.js 中定义)
|
||||
*/
|
||||
static associate(models) {
|
||||
// 围栏与农场关联(可选)
|
||||
this.belongsTo(models.Farm, {
|
||||
foreignKey: 'farm_id',
|
||||
as: 'farm'
|
||||
})
|
||||
}
|
||||
// static associate(models) {
|
||||
// // 围栏与农场关联(可选)
|
||||
// this.belongsTo(models.Farm, {
|
||||
// foreignKey: 'farm_id',
|
||||
// as: 'farm'
|
||||
// })
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取围栏类型文本
|
||||
|
||||
Reference in New Issue
Block a user