35 行
1.2 KiB
PHP
可执行文件
35 行
1.2 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace Common\Model;
|
|
|
|
use Think\Model;
|
|
|
|
//[1.8.50]
|
|
|
|
/**
|
|
* 权限组列表
|
|
* Class JurisdictionListModel
|
|
* @package Common\Model
|
|
*/
|
|
class JurisdictionGroupModel extends BaseModel
|
|
{
|
|
protected $tableName = 'jurisdiction_group';
|
|
protected $fields = [
|
|
'id',//int(11) NOT NULL AUTO_INCREMENT,
|
|
'role_name',//varchar(255) NOT NULL,
|
|
'jurisdiction_id',//varchar(10000) NOT NULL,
|
|
'create_user',//tinyint(1) NOT NULL,
|
|
'create_user_id',//int(11) NOT NULL,
|
|
'status',//tinyint(1) DEFAULT '1',
|
|
'add_time',//varchar(20) DEFAULT NULL,
|
|
'state',//tinyint(1) DEFAULT '1',
|
|
];
|
|
const ID = 'id';//int(11) NOT NULL AUTO_INCREMENT,
|
|
const ROLE_NAME = 'role_name';//varchar(255) NOT NULL,角色组名称
|
|
const JURISDICTION_ID = 'jurisdiction_id';//varchar(10000) NOT NULL,//角色权限id列表
|
|
const CREATE_USER = 'create_user';//tinyint(1) NOT NULL,创建者类型
|
|
const CREATE_USER_ID = 'create_user_id';//int(11) NOT NULL,创建者id
|
|
const STATUS = 'status';//tinyint(1) DEFAULT '1',状态 1正常 0 禁用
|
|
const ADD_TIME = 'add_time';//varchar(20) DEFAULT NULL,添加时间
|
|
const STATE = 'state';//tinyint(1) DEFAULT '1',状态1正常 0删除
|
|
} |