mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
feat(scheme): 新增多个数据模型类文件
This commit is contained in:
35
app/admin/scheme/SystemNode.php
Normal file
35
app/admin/scheme/SystemNode.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\scheme;
|
||||
|
||||
use app\common\scheme\BaseScheme;
|
||||
use app\common\scheme\attribute\Table;
|
||||
use app\common\scheme\attribute\Field;
|
||||
use app\common\scheme\attribute\Component;
|
||||
use app\common\scheme\attribute\Index;
|
||||
|
||||
#[Table(name: 'ul_system_node', comment: '')]
|
||||
#[Index(columns: ['node'], name: 'node', type: 'NORMAL')]
|
||||
class SystemNode extends BaseScheme
|
||||
{
|
||||
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
||||
public $id;
|
||||
|
||||
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '节点代码')]
|
||||
public $node;
|
||||
|
||||
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '节点标题')]
|
||||
public $title;
|
||||
|
||||
#[Field(type: 'int', length: 11, comment: '节点类型(1:控制器,2:节点)', unsigned: true)]
|
||||
public $type;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '1', comment: '是否启动RBAC权限控制', unsigned: true)]
|
||||
public $is_auth;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
|
||||
public $create_time;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
||||
public $update_time;
|
||||
}
|
||||
Reference in New Issue
Block a user