123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 角色权限
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/10/31
- * Time: 18:00
- */
- namespace JinDouYun\Dao\Department;
- use JinDouYun\Dao\BaseDao;
- class DRoleAcl extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'role_acl';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT,
- 'roleId',//int(11) NOT NULL COMMENT '角色id',
- 'userCenterId',// int(11) DEFAULT NULL COMMENT '用户id',
- 'isAdministrator',//tinyint(1) NOT NULL DEFAULT '4',//COMMENT '是否为超级管理员(5是 4否)',
- 'acl',//json DEFAULT NULL COMMENT '权限json',
- 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime'=> time()
- ];
- $this->_update_autofill = [
- 'updateTime'=> time()
- ];
- parent::__construct($serviceDB);
- }
- }
|