love_php/app/Models/AssistantUser.php

27 lines
497 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AssistantUser extends Model
{
protected $fillable = [];
protected $guarded = [];
public function user()
{
return $this->hasOne(User::class, 'id', 'user_id');
}
public function assistantUser()
{
return $this->hasOne(User::class, 'id', 'assistant_user_id');
}
public function serviceUser()
{
return $this->hasOne(User::class, 'id', 'service_user_id');
}
}