feat: 工单Bot增强
This commit is contained in:
1 parent
5c86010e29
commit
512b29ceec
2 files changed
+47
-6
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
|
||||
class User extends Model
|
||||
{
|
||||
@@ -20,4 +21,10 @@ class User extends Model
|
||||
{
|
||||
return $this->belongsTo(self::class, 'invite_user_id', 'id');
|
||||
}
|
||||
|
||||
// 获取用户套餐
|
||||
public function plan()
|
||||
{
|
||||
return $this->belongsTo(Plan::class, 'plan_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user