mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
28 lines
412 B
PHP
28 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 用户分组控制.
|
|
*/
|
|
class UserGroup extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'user_group';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function users()
|
|
{
|
|
return $this->hasMany(User::class);
|
|
}
|
|
|
|
public function nodes()
|
|
{
|
|
return $this->belongsToMany(Node::class);
|
|
}
|
|
}
|