feat(scheme): 新增多个数据模型类文件

This commit is contained in:
augushong
2026-01-09 21:38:25 +08:00
parent 4f689d9881
commit 6b4a67aeb4
17 changed files with 865 additions and 29 deletions

View File

@@ -0,0 +1,59 @@
<?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_admin', comment: '')]
#[Index(columns: ['username'], name: 'username', type: 'NORMAL')]
#[Index(columns: ['phone'], name: 'phone', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class SystemAdmin extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '角色权限ID')]
public $auth_ids;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '头像')]
public $head_img;
#[Field(type: 'char', length: 50, precision: 50, default: '', comment: '用户登录名')]
public $username;
#[Field(type: 'char', length: 40, precision: 40, default: '', comment: '用户密码')]
public $password;
#[Field(type: 'char', length: 16, precision: 16, default: '', comment: '联系手机号')]
public $phone;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[Field(type: 'bigint', length: 11, default: '0', comment: '登录次数', unsigned: true)]
public $login_num;
#[Field(type: 'int', length: 11, default: '0', comment: '排序')]
public $sort;
#[Field(type: 'int', length: 11, default: '1', comment: '状态', unsigned: true)]
#[Component(type: 'radio', options: ['禁用', '启用', ''])]
public $status;
#[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;
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
public $delete_time;
#[Field(length: 50, precision: 50, default: '', comment: '昵称')]
public $nickname;
}