You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
user_center/app/Models/AuthRuleT.php

48 lines
1.6 KiB

4 years ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* This is the model class for table "uc_auth_rule_t".
*
* @property $id bigint
* @property $title varchar
* @property $name varchar
* @property $method varchar
* @property $desc varchar
* @property $group varchar
* @property $module varchar
* @property $condition varchar
* @property $status tinyint
* @property $created_at timestamp
* @property $updated_at timestamp
*/
class AuthRuleT extends Model
{
use HasFactory;
protected $table = 'uc_auth_rule_t';
public $attrs = [
'title' => ['name' => 'title', 'title' => '标题', 'type' => 'varchar', 'is_must' => '1'],
'name' => ['name' => 'name', 'title' => '名称,英文唯一标识', 'type' => 'varchar', 'is_must' => '1'],
'method' => ['name' => 'method', 'title' => '请求方法', 'type' => 'varchar', 'is_must' => '1'],
'desc' => ['name' => 'desc', 'title' => '描述', 'type' => 'varchar', 'is_must' => '1'],
'group' => ['name' => 'group', 'title' => '权限节点分组', 'type' => 'varchar', 'is_must' => '1'],
'module' => ['name' => 'module', 'title' => '所属模块', 'type' => 'varchar', 'is_must' => '1'],
'condition' => ['name' => 'condition', 'title' => '规则附加条件', 'type' => 'varchar', 'is_must' => '1'],
'status' => ['name' => 'status', 'title' => '状态 1 有效 2 无效', 'type' => 'tinyint', 'is_must' => '1'],
];
protected $fillable = [
'title',
'name',
'desc',
'group',
'module',
];
}