Log.php 657 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\agent\model\auth;
  3. use app\common\model\BaseModel;
  4. class Log extends BaseModel
  5. {
  6. /**
  7. * @var string
  8. */
  9. protected $name = 'agent_system_operate_log';
  10. /**
  11. * @var array
  12. */
  13. protected $insert = ['created_at','updated_at'];
  14. /**
  15. * @var array
  16. */
  17. protected $update = ['updated_at'];
  18. /**
  19. * 关联用户
  20. *
  21. * @author 许祖兴 < zuxing.xu@lettered.cn>
  22. * @date 2020/3/18 10:44
  23. *
  24. * @return \think\model\relation\BelongsTo
  25. */
  26. public function user()
  27. {
  28. return $this->belongsTo('Users','user_id');
  29. }
  30. }