suyuan-breed/app/common/model/suyuan_operation/AnimalOperateAction.php

32 lines
778 B
PHP

<?php
namespace app\common\model\suyuan_operation;
use app\common\model\BaseModel;
class AnimalOperateAction extends BaseModel
{
protected $name = 'animal_operate_action';
/**
* @notes 关联fenceHouseAttr
* @return \think\model\relation\HasOne
* @author likeadmin
* @date 2024/01/15 10:04
*/
public function fenceHouseAttr()
{
return $this->hasOne(\app\common\model\fence_house\FenceHouse::class, 'id', 'fence_house_id');
}
/**
* @notes 关联animalInfo
* @return \think\model\relation\HasOne
* @author likeadmin
* @date 2024/01/15 10:04
*/
public function animalInfo()
{
return $this->hasOne(\app\common\model\animal_info\AnimalInfo::class, 'id', 'animal_info_id');
}
}