Files
dsserver/app/model/WaUploads.php
T
zimoyin 4c841b9dbf init
2026-04-02 17:42:00 +08:00

50 lines
1.4 KiB
PHP

<?php
namespace app\model;
use support\Model;
/**
* WaUploads 模型
* 表说明:附件
* 对应数据表:wa_uploads
* @property int $id id 主键(非空,主键)
* @property string $name name 名称(非空)
* @property string $url url 文件(非空)
* @property int $admin_id admin_id 管理员
* @property int $file_size file_size 文件大小(非空)
* @property string $mime_type mime_type mime类型(非空)
* @property int $image_width image_width 图片宽度
* @property int $image_height image_height 图片高度
* @property string $ext ext 扩展名(非空)
* @property string $storage storage 存储位置(非空,默认值:local)
* @property string $created_at created_at 上传时间
* @property string $category category 类别
* @property string $updated_at updated_at 更新时间
*/
class WaUploads extends Model
{
/**
* 数据表名
* @var string
*/
protected $table = 'wa_uploads';
/**
* 主键字段名
* @var string
*/
protected $pk = 'id';
/**
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
* @var bool
*/
protected $autoWriteTimestamp = false;
/**
* 字段严格检查(false=允许操作未定义字段)
* @var bool
*/
protected $strict = false;
}