mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 10:02:49 +08:00
feat(scheme): 新增多个数据模型类文件
This commit is contained in:
61
app/admin/scheme/SystemUploadfile.php
Normal file
61
app/admin/scheme/SystemUploadfile.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user