chore: 首次提交 - 关联 GitHub fnvtk/MBTI_wang
Made-with: Cursor
This commit is contained in:
29
api/app/model/UploadFile.php
Normal file
29
api/app/model/UploadFile.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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';
|
||||
}
|
||||
Reference in New Issue
Block a user