Files
MBTI_wang/api/app/model/UploadFile.php
2026-03-17 12:39:38 +08:00

30 lines
701 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\model;
use think\Model;
/**
* 上传文件记录(本地/OSS用于去重与 URL 查询
*/
class UploadFile extends Model
{
protected $name = 'upload_files';
protected $schema = [
'id' => 'int',
'path' => 'string',
'url' => 'string',
'driver' => 'string',
'hash' => 'string',
'size' => 'int',
'mimeType' => 'string',
'extension' => 'string',
'createdAt' => 'int',
'updatedAt' => 'int',
];
protected $autoWriteTimestamp = 'int';
protected $createTime = 'createdAt';
protected $updateTime = 'updatedAt';
}