初始化
This commit is contained in:
25
addons/webman/model/AdminRoleUsers.php
Normal file
25
addons/webman/model/AdminRoleUsers.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace addons\webman\model;
|
||||
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class AdminRoleUsers
|
||||
* @property int id 主键
|
||||
* @property int role_id 角色id
|
||||
* @property int user_id 用户id
|
||||
*
|
||||
* @package addons\webman\model
|
||||
*/
|
||||
class AdminRoleUsers extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
public function __construct(array $attributes = [])
|
||||
{
|
||||
parent::__construct($attributes);
|
||||
$this->setTable(plugin()->webman->config('database.role_user_table'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user