12345678910111213141516171819202122232425 |
- <?php
- namespace App\Http\Models;
- use Illuminate\Database\Eloquent\Model;
- class WeekTaskHistory extends Model
- {
- protected $primaryKey = 'id';
- protected $table = 'week_task_history';
- protected $guarded = [];
- public function designer()
- {
- return $this->hasOne(User::class,'id','design_id');
- }
- public function dutyMan()
- {
- return $this->hasOne(User::class,'id','duty_id');
- }
- public function webMan(){
- return $this->hasOne(User::class,'id','web_id');
- }
- }
|