love_php/app/Models/MEarningwithdraws.php
2026-04-02 09:20:51 +08:00

25 lines
575 B
PHP

<?php
namespace App\Models;
use App\Models\Live\Anchor;
use App\Models\Server\MerchantUser;
use Illuminate\Database\Eloquent\Model;
class MEarningwithdraws extends Model
{
protected $table = 'm_earning_withdraws';
protected $fillable = [];
protected $guarded = [];
public function anchor(){
return $this->hasOne(Anchor::class,'m_id','m_id');
}
public function admin(){
return $this->hasOne(User::class,'id','admin_id');
}
public function user(){
return $this->hasOne(MerchantUser::class,'id','m_user_id');
}
}