12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\model;
- use app\common\constant\CommonConstant;
- use think\Model;
- /**
- * 审批抄送模型
- */
- class ApproveCopy extends Model
- {
- // 表名
- protected $name = 'approve_copy';
- // 追加属性
- protected $append = [
- ];
- // 关联用户
- public function user()
- {
- return $this->belongsTo(User::class, 'approve_user', 'userid');
- }
- }
|