ApproveCopy.php 401 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\model;
  3. use app\common\constant\CommonConstant;
  4. use think\Model;
  5. /**
  6. * 审批抄送模型
  7. */
  8. class ApproveCopy extends Model
  9. {
  10. // 表名
  11. protected $name = 'approve_copy';
  12. // 追加属性
  13. protected $append = [
  14. ];
  15. // 关联用户
  16. public function user()
  17. {
  18. return $this->belongsTo(User::class, 'approve_user', 'userid');
  19. }
  20. }