Log.php 397 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\admin\model\oauth;
  3. use think\Model;
  4. /**
  5. * Log
  6. */
  7. class Log extends Model
  8. {
  9. // 表名
  10. protected $name = 'oauth_log';
  11. // 自动写入时间戳字段
  12. protected $autoWriteTimestamp = true;
  13. protected $updateTime = false;
  14. public function user()
  15. {
  16. return $this->belongsTo(\app\admin\model\User::class, 'user_id', 'id');
  17. }
  18. }