hyperf-chat/app/Model/Article/ArticleAnnex.php

49 lines
1.2 KiB
PHP
Raw Normal View History

2020-11-05 17:40:51 +08:00
<?php
declare (strict_types=1);
namespace App\Model\Article;
use App\Model\BaseModel;
/**
* 笔记附件数据表模型
*
2021-04-20 16:30:57 +08:00
* @property integer $id 笔记附件ID
* @property integer $user_id 用户ID
* @property integer $article_id 笔记ID
* @property string $file_suffix 文件后缀名
* @property int $file_size 文件大小
* @property string $save_dir 文件相对路径
* @property string $original_name 文件原名
* @property integer $status 文件状态
* @property string $created_at 上传时间
* @property string $deleted_at 删除时间
2020-11-05 17:40:51 +08:00
* @package App\Model\Article
*/
class ArticleAnnex extends BaseModel
{
protected $table = 'article_annex';
protected $fillable = [
2020-11-28 19:59:10 +08:00
'user_id',
'article_id',
'file_suffix',
'file_size',
'save_dir',
'original_name',
'status',
'created_at',
'deleted_at'
2020-11-05 17:40:51 +08:00
];
2021-04-20 16:30:57 +08:00
2020-11-05 17:40:51 +08:00
protected $casts = [
2021-04-20 16:30:57 +08:00
'id' => 'integer',
'user_id' => 'integer',
2020-11-05 17:40:51 +08:00
'article_id' => 'integer',
2021-04-20 16:30:57 +08:00
'file_size' => 'integer',
'status' => 'integer',
2020-11-05 17:40:51 +08:00
'created_at' => 'datetime'
];
}