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,41 @@
<?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_debug_log', comment: '')]
#[Index(columns: ['uid'], name: 'uid', type: 'NORMAL')]
class DebugLog extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 30, precision: 30, default: '')]
public $uid;
#[Field(type: 'char', length: 255, precision: 255, default: '')]
public $level;
#[Field(type: 'longtext')]
public $content;
#[Field(type: 'char', length: 30, precision: 30, default: '')]
public $create_time_title;
#[Field(type: 'int', length: 11, default: '0')]
public $create_time;
#[Field(type: 'char', length: 30, precision: 30, default: '')]
public $app_name;
#[Field(type: 'char', length: 30, precision: 30, default: '')]
public $controller_name;
#[Field(type: 'char', length: 30, precision: 30, default: '')]
public $action_name;
}

View File

@@ -0,0 +1,44 @@
<?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_mall_cate', comment: '')]
#[Index(columns: ['title'], name: 'title', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class MallCate extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 20, precision: 20, default: '', comment: '分类名')]
public $title;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '分类图片')]
#[Component(type: 'image', options: [])]
public $image;
#[Field(type: 'int', length: 11, default: '0', comment: '排序')]
public $sort;
#[Field(type: 'int', length: 11, default: '2', comment: '状态')]
#[Component(type: 'radio', options: [1 => '禁用', 2 => '启用'])]
public $status;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[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;
}

View File

@@ -0,0 +1,88 @@
<?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_mall_goods', comment: '')]
#[Index(columns: ['cate_id'], name: 'cate_id', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class MallGoods extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'bigint', length: 11, comment: '分类ID', unsigned: true)]
public $cate_id;
#[Field(type: 'char', length: 20, precision: 20, default: '', comment: '商品名称')]
public $title;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '商品标签')]
public $tag;
#[Field(type: 'char', length: 255, precision: 255, comment: '商品logo')]
#[Component(type: 'image', options: [])]
public $logo;
#[Field(type: 'text', comment: '商品图片')]
#[Component(type: 'images', options: [])]
public $images;
#[Field(type: 'text', comment: '商品描述')]
#[Component(type: 'editor', options: [])]
public $describe;
#[Field(type: 'text', comment: '商品属性')]
public $property;
#[Field(type: 'decimal', length: 8, precision: 8, scale: 2, default: '0.00', comment: '市场价')]
public $market_price;
#[Field(type: 'decimal', length: 8, precision: 8, scale: 2, default: '0.00', comment: '折扣价')]
public $discount_price;
#[Field(type: 'int', length: 11, default: '0', comment: '销量', unsigned: true)]
public $sales;
#[Field(type: 'int', length: 11, default: '0', comment: '虚拟销量', unsigned: true)]
public $virtual_sales;
#[Field(type: 'int', length: 11, default: '0', comment: '库存', unsigned: true)]
public $stock;
#[Field(type: 'int', length: 11, default: '0', comment: '总库存', unsigned: true)]
public $total_stock;
#[Field(type: 'int', length: 11, default: '0', comment: '排序', unsigned: true)]
public $sort;
#[Field(type: 'int', length: 11, default: '0', comment: '状态', unsigned: true)]
#[Component(type: 'radio', options: ['正常', '禁用'])]
public $status;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[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: 300, precision: 300, nullable: false, default: '')]
public $license;
#[Field(length: 300, precision: 300, nullable: false, default: '')]
public $license_name;
#[Field(type: 'text', comment: '属性(静态字段)')]
public $property_static;
}

View File

@@ -0,0 +1,29 @@
<?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_mall_tag', comment: '')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class MallTag extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 20, precision: 20, default: '', comment: '商品名称')]
public $title;
#[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;
}

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;
}

View File

@@ -0,0 +1,41 @@
<?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_auth', comment: '')]
#[Index(columns: ['title'], name: 'title', type: 'UNIQUE')]
#[Index(columns: ['title'], name: 'title_2', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class SystemAuth extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 20, precision: 20, comment: '权限名称')]
public $title;
#[Field(type: 'int', length: 11, default: '0', comment: '排序')]
public $sort;
#[Field(type: 'int', length: 11, default: '0', comment: '状态')]
#[Component(type: 'radio', options: [1 => '禁用', 2 => '启用'])]
public $status;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[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;
}

View File

@@ -0,0 +1,27 @@
<?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_auth_node', comment: '')]
#[Index(columns: ['auth_id'], name: 'auth_id', type: 'NORMAL')]
#[Index(columns: ['node_id'], name: 'node_id', type: 'NORMAL')]
class SystemAuthNode extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'bigint', length: 11, comment: '角色ID', unsigned: true)]
public $auth_id;
#[Field(type: 'bigint', length: 11, comment: '节点ID', unsigned: true)]
public $node_id;
#[Field(type: 'char', length: 100, precision: 100, default: '')]
public $node;
}

View File

@@ -0,0 +1,39 @@
<?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_config', comment: '')]
#[Index(columns: ['name'], name: 'name', type: 'NORMAL')]
#[Index(columns: ['group'], name: 'group', type: 'NORMAL')]
class SystemConfig extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 30, precision: 30, default: '', comment: '变量名')]
public $name;
#[Field(type: 'char', length: 30, precision: 30, default: '', comment: '分组')]
public $group;
#[Field(type: 'text', comment: '变量值')]
public $value;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '备注信息')]
public $remark;
#[Field(type: 'int', length: 11, default: '0', comment: '排序')]
public $sort;
#[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;
}

View File

@@ -0,0 +1,41 @@
<?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_data', comment: '')]
#[Index(columns: ['key'], name: 'ul_system_data_key_IDX', type: 'NORMAL')]
#[Index(columns: ['admin_id'], name: 'ul_system_data_admin_id_IDX', type: 'NORMAL')]
class SystemData extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[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(length: 100, precision: 100, nullable: false)]
public $key;
#[Field(type: 'bigint', length: 11, nullable: false, comment: '用户', unsigned: true)]
public $admin_id;
#[Field(length: 100, precision: 100, default: 'system', comment: '类型')]
#[Component(type: 'select', options: ['system' => '系统产生的数据', 'temp' => '临时数据', 'user' => '用户存储的数据'])]
public $type;
#[Field(type: 'text', comment: '值')]
#[Component(type: 'textarea', options: [])]
public $value;
#[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '过期时间', unsigned: true)]
public $expire_time;
}

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_menu', comment: '')]
#[Index(columns: ['title'], name: 'title', type: 'NORMAL')]
#[Index(columns: ['href'], name: 'href', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class SystemMenu extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'bigint', length: 11, default: '0', comment: '父id', unsigned: true)]
public $pid;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '名称')]
public $title;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '菜单图标')]
public $icon;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '链接')]
public $href;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '权限标志')]
public $auth_node;
#[Field(type: 'text', comment: '链接参数')]
public $params;
#[Field(type: 'char', length: 20, precision: 20, default: '_self', comment: '链接打开方式')]
public $target;
#[Field(type: 'int', length: 11, default: '0', comment: '排序')]
public $sort;
#[Field(type: 'int', length: 11, default: '1', comment: '状态')]
#[Component(type: 'radio', options: ['禁用', '启用'])]
public $status;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[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;
}

View 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;
}

View File

@@ -0,0 +1,45 @@
<?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_quick', comment: '')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class SystemQuick extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 20, precision: 20, default: '', comment: '快捷入口名称')]
public $title;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '图标')]
public $icon;
#[Field(type: 'char', length: 255, precision: 255, comment: '快捷链接')]
public $href;
#[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: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
public $remark;
#[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;
}

View File

@@ -0,0 +1,61 @@
<?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_uploadfile', comment: '')]
#[Index(columns: ['upload_type'], name: 'upload_type', type: 'NORMAL')]
#[Index(columns: ['original_name'], name: 'original_name', type: 'NORMAL')]
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
class SystemUploadfile extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'char', length: 20, precision: 20, default: 'local', comment: '存储位置')]
public $upload_type;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '文件原名')]
public $original_name;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '链接')]
public $url;
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '存储名称')]
public $save_name;
#[Field(type: 'char', length: 30, precision: 30, default: '', comment: '宽度')]
public $image_width;
#[Field(type: 'char', length: 30, precision: 30, default: '', comment: '高度')]
public $image_height;
#[Field(type: 'int', length: 11, default: '0', comment: '图片帧数', unsigned: true)]
public $image_frames;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: 'mime类型')]
public $mime_type;
#[Field(type: 'int', length: 11, default: '0', comment: '文件大小', unsigned: true)]
public $file_size;
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '扩展名')]
public $file_ext;
#[Field(type: 'char', length: 40, precision: 40, default: '', comment: '文件 sha1编码')]
public $sha1;
#[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;
}

View File

@@ -14,108 +14,108 @@ use app\common\scheme\attribute\Index;
#[Index(columns: ['detail'], name: 'detail', type: 'FULLTEXT')]
class TestGoods extends BaseScheme
{
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: null, comment: '', unsigned: true, autoIncrement: true, primary: true)]
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'bigint', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '分类ID', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '分类ID', unsigned: true)]
#[Component(type: 'relation', options: ['table' => 'mall_cate', 'relationBindSelect' => 'title'])]
public $cate_id;
#[Field(type: 'char', length: 20, precision: 20, scale: 0, nullable: false, default: '', comment: '商品名称', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'char', length: 20, precision: 20, nullable: false, default: '', comment: '商品名称')]
public $title;
#[Field(type: 'char', length: 255, precision: 255, scale: 0, nullable: false, default: null, comment: '商品logo', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'char', length: 255, precision: 255, nullable: false, comment: '商品logo')]
#[Component(type: 'image', options: [])]
public $logo;
#[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '商品图片', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'text', nullable: false, comment: '商品图片')]
#[Component(type: 'images', options: [])]
public $images;
#[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '商品描述', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'text', nullable: false, comment: '商品描述')]
#[Component(type: 'editor', options: [])]
public $describe;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '总库存', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '总库存', unsigned: true)]
public $total_stock;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '排序', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '排序', unsigned: true)]
public $sort;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '状态', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '状态', unsigned: true)]
#[Component(type: 'radio', options: ['正常', '禁用'])]
public $status;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '合格证', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '合格证')]
#[Component(type: 'file', options: [])]
public $cert_file;
#[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '检测报告', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'text', nullable: false, comment: '检测报告')]
#[Component(type: 'files', options: [])]
public $verfiy_file;
#[Field(type: 'char', length: 255, precision: 255, scale: 0, nullable: false, default: '', comment: '备注说明', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'char', length: 255, precision: 255, nullable: false, default: '', comment: '备注说明')]
public $remark;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $create_time;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $update_time;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $delete_time;
#[Field(type: 'datetime', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '发布日期', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'datetime', nullable: false, comment: '发布日期')]
#[Component(type: 'date', options: ['date'])]
public $publish_time;
#[Field(type: 'date', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '售卖日期', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'date', nullable: false, comment: '售卖日期')]
#[Component(type: 'date', options: ['datetime'])]
public $sale_time;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '简介', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '简介')]
#[Component(type: 'textarea', options: [])]
public $intro;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: null, comment: '秒杀状态', unsigned: true, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, comment: '秒杀状态', unsigned: true)]
#[Component(type: 'select', options: [0 => '未参加', 1 => '已开始', 3 => '已结束'])]
public $time_status;
#[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '是否推荐', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '是否推荐')]
#[Component(type: 'switch', options: ['不推荐', '推荐'])]
public $is_recommend;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: '0', comment: '商品类型', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, default: '0', comment: '商品类型')]
#[Component(type: 'checkbox', options: ['taobao' => '淘宝', 'jd' => '京东'])]
public $shop_type;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '商品标签', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '商品标签')]
#[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'checkbox', 'valueField' => 'id', 'fieldName' => 'title'])]
public $tag;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: true, default: null, comment: '商品标签(单选)', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, comment: '商品标签(单选)')]
#[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'radio', 'valueField' => 'id', 'fieldName' => 'title'])]
public $tag_backup;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '产地', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '产地')]
#[Component(type: 'city', options: ['name-province' => '0', 'code' => '0'])]
public $from_area;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: '山东省/临沂市', comment: '仓库', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, default: '山东省/临沂市', comment: '仓库')]
#[Component(type: 'city', options: ['level' => 'city'])]
public $store_city;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '商品标签 (输入)', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '商品标签 (输入)')]
#[Component(type: 'tag', options: [])]
public $tag_input;
#[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '唯一id', unsigned: false, autoIncrement: false, primary: false)]
#[Field(length: 100, precision: 100, nullable: false, comment: '唯一id')]
public $uid;
#[Field(type: 'decimal', length: 10, precision: 10, scale: 0, nullable: true, default: null, comment: '价格', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'decimal', length: 10, precision: 10, comment: '价格')]
public $price;
#[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: true, default: null, comment: '详情', unsigned: false, autoIncrement: false, primary: false)]
#[Field(type: 'text', comment: '详情')]
public $detail;
}

View File

@@ -0,0 +1,55 @@
<?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_tree_tree', comment: '')]
#[Index(columns: ['path'], name: 'ul_tree_tree_path_IDX', type: 'NORMAL')]
#[Index(columns: ['pid'], name: 'ul_tree_tree_pid_IDX', type: 'NORMAL')]
#[Index(columns: ['title'], name: 'ul_tree_tree_title_IDX', type: 'NORMAL')]
class TreeTree extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, comment: 'ID', autoIncrement: true, primary: true)]
public $id;
#[Field(length: 255, precision: 255, nullable: false, default: '', comment: '分类名称')]
#[Component(type: 'text', options: [])]
public $title;
#[Field(type: 'int', length: 11, comment: '父级ID')]
public $pid;
#[Field(type: 'int', length: 11, nullable: false, default: '1', comment: '分类层级')]
public $level;
#[Field(length: 255, precision: 255, nullable: false, comment: '分类路径')]
public $path;
#[Field(length: 50, precision: 50, nullable: false, default: 'default', comment: '类型')]
public $type;
#[Field(type: 'tinyint', length: 11, nullable: false, default: '1', comment: '状态')]
#[Component(type: 'switch', options: ['禁用', '启用'])]
public $status;
#[Field(length: 255, precision: 255, default: '', comment: '分类图片')]
#[Component(type: 'image', options: [])]
public $image;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '创建时间', unsigned: true)]
public $create_time;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '更新时间', unsigned: true)]
public $update_time;
#[Field(length: 100, precision: 100, comment: '备注')]
public $comment;
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
public $delete_time;
}

View File

@@ -0,0 +1,120 @@
<?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_ulthon_demo_goods', comment: '')]
#[Index(columns: ['cate_id'], name: 'cate_id', type: 'NORMAL')]
#[Index(columns: ['detail'], name: 'detail', type: 'FULLTEXT')]
class UlthonDemoGoods extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '分类ID', unsigned: true)]
#[Component(type: 'relation', options: ['table' => 'mall_cate', 'relationBindSelect' => 'title'])]
public $cate_id;
#[Field(type: 'char', length: 20, precision: 20, nullable: false, default: '', comment: '商品名称')]
public $title;
#[Field(type: 'char', length: 255, precision: 255, nullable: false, comment: '商品logo')]
#[Component(type: 'image', options: [])]
public $logo;
#[Field(type: 'text', comment: '商品图片')]
#[Component(type: 'images', options: [])]
public $images;
#[Field(type: 'text', comment: '商品描述')]
#[Component(type: 'editor', options: [])]
public $describe;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '总库存', unsigned: true)]
public $total_stock;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '排序', unsigned: true)]
public $sort;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '状态', unsigned: true)]
#[Component(type: 'radio', options: ['正常', '禁用'])]
public $status;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '合格证')]
#[Component(type: 'file', options: [])]
public $cert_file;
#[Field(type: 'text', comment: '检测报告')]
#[Component(type: 'files', options: [])]
public $verfiy_file;
#[Field(type: 'char', length: 255, precision: 255, nullable: false, default: '', comment: '备注说明')]
public $remark;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $create_time;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $update_time;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $delete_time;
#[Field(type: 'int', length: 11, nullable: false, comment: '发布日期', unsigned: true)]
#[Component(type: 'date', options: ['date'])]
public $publish_time;
#[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '售卖日期', unsigned: true)]
#[Component(type: 'date', options: ['datetime'])]
public $sale_time;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '简介')]
#[Component(type: 'textarea', options: [])]
public $intro;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '秒杀状态', unsigned: true)]
#[Component(type: 'select', options: [0 => '未参加', 1 => '已开始', 3 => '已结束'])]
public $time_status;
#[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '是否推荐')]
#[Component(type: 'switch', options: ['不推荐', '推荐'])]
public $is_recommend;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品类型')]
#[Component(type: 'checkbox', options: ['taobao' => '淘宝', 'jd' => '京东'])]
public $shop_type;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品标签')]
#[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'checkbox', 'valueField' => 'id', 'fieldName' => 'title'])]
public $tag;
#[Field(length: 100, precision: 100, default: '', comment: '商品标签(单选)')]
#[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'radio', 'valueField' => 'id', 'fieldName' => 'title'])]
public $tag_backup;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '产地')]
#[Component(type: 'city', options: ['name-province' => '0', 'code' => '0'])]
public $from_area;
#[Field(length: 100, precision: 100, nullable: false, default: '山东省/临沂市', comment: '仓库')]
#[Component(type: 'city', options: ['level' => 'city'])]
public $store_city;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品标签 (输入)')]
#[Component(type: 'tag', options: [])]
public $tag_input;
#[Field(length: 100, precision: 100, nullable: false, default: '', comment: '唯一id')]
public $uid;
#[Field(type: 'decimal', length: 10, precision: 10, scale: 2, default: '0.00', comment: '价格')]
public $price;
#[Field(type: 'text', comment: '详情')]
public $detail;
}

View File

@@ -0,0 +1,52 @@
<?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_ulthon_demo_goods_batch', comment: '')]
class UlthonDemoGoodsBatch extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $create_time;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $update_time;
#[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)]
public $delete_time;
#[Field(type: 'bigint', length: 11, unsigned: true)]
public $goods_id;
#[Field(length: 100, precision: 100, default: '', comment: '批次名称')]
public $title;
#[Field(length: 100, precision: 100, default: '', comment: '批次编号')]
public $num;
#[Field(type: 'tinyint', length: 11, default: '1', comment: '状态', unsigned: true)]
#[Component(type: 'switch', options: ['关闭', '开启'])]
public $status;
#[Field(length: 100, precision: 100, default: '', comment: '备注')]
#[Component(type: 'textarea', options: [])]
public $comment;
#[Field(type: 'bigint', length: 11, default: '0', comment: '库存')]
public $stock;
#[Field(length: 100, precision: 100, comment: '包装')]
#[Component(type: 'image', options: [])]
public $title_image;
#[Field(length: 100, precision: 100)]
public $add_flag;
}