FileModel.php 824 Bytes
Newer Older
chentianyu's avatar
chentianyu committed
1 2 3 4 5 6 7 8 9
<?php

declare(strict_types=1);

namespace Meibuyu\Common\UploadOss;

use Hyperf\DbConnection\Model\Model;

/**
chentianyu's avatar
chentianyu committed
10
 * oss模型类 OssFiles
chentianyu's avatar
chentianyu committed
11 12 13
 * @package App\Model
 * @property integer $id
 * @property string $type 文件类型
chentianyu's avatar
chentianyu committed
14 15
 * @property string $module 模块名
 * @property string $source_name 源文件名
chentianyu's avatar
chentianyu committed
16 17 18
 * @property string $name 文件名
 * @property string $path 文件路径
 * @property string $user_id 用户id
chentianyu's avatar
chentianyu committed
19
 * @property string $ext 文件后缀
chentianyu's avatar
chentianyu committed
20 21 22 23 24 25
 * @property string $size 文件大小
 * @property string $created_at
 */
class FileModel extends Model
{

chentianyu's avatar
chentianyu committed
26 27 28 29 30 31 32
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'oss_files';

chentianyu's avatar
chentianyu committed
33 34
    const UPDATED_AT = null;

chentianyu's avatar
chentianyu committed
35
    protected $fillable = ['type', 'module', 'source_name', 'name', 'path', 'user_id', 'ext', 'size'];
chentianyu's avatar
chentianyu committed
36

chentianyu's avatar
chentianyu committed
37
}