48 lines
1.7 KiB
PHP
48 lines
1.7 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace App\System\Model;
|
|
|
|
use Hyperf\Database\Model\SoftDeletes;
|
|
use Builder\BaseModel;
|
|
/**
|
|
* @property int $id 主键
|
|
* @property string $storage_mode 存储模式 (1 本地 2 阿里云 3 七牛云 4 腾讯云)
|
|
* @property string $origin_name 原文件名
|
|
* @property string $object_name 新文件名
|
|
* @property string $hash 文件hash
|
|
* @property string $mime_type 资源类型
|
|
* @property string $storage_path 存储目录
|
|
* @property string $suffix 文件后缀
|
|
* @property int $size_byte 字节数
|
|
* @property string $size_info 文件大小
|
|
* @property string $url url地址
|
|
* @property int $created_by 创建者
|
|
* @property int $updated_by 更新者
|
|
* @property \Carbon\Carbon $created_at 创建时间
|
|
* @property \Carbon\Carbon $updated_at 更新时间
|
|
* @property string $deleted_at 删除时间
|
|
* @property string $remark 备注
|
|
*/
|
|
class SystemUploadfile extends BaseModel
|
|
{
|
|
use SoftDeletes;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected ?string $table = 'system_uploadfile';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected array $fillable = ['id', 'storage_mode', 'origin_name', 'object_name', 'hash', 'mime_type', 'storage_path', 'suffix', 'size_byte', 'size_info', 'url', 'created_by', 'updated_by', 'created_at', 'updated_at', 'deleted_at', 'remark'];
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected array $casts = ['id' => 'integer', 'storage_mode' => 'integer', 'size_byte' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
|
|
} |