<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class UserInfoModel extends Model { protected $table='user_info'; protected $primaryKey = 'userId'; public $timestamps = false;
public function department() { return $this->hasOne(DepartmentModel::class, 'department_id', 'department_id'); }
}