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

57 lines
1.3 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;
/**
* 笔记附件数据表模型
*
* @property int $id 笔记附件ID
* @property int $user_id 用户ID
* @property int $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 删除时间
*
* @package App\Model\Article
*/
class ArticleAnnex extends BaseModel
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'article_annex';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id', 'article_id', 'file_size', 'status', 'created_at'
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'id' => 'integer',
'user_id' => 'integer',
'article_id' => 'integer',
'file_size' => 'integer',
'status' => 'integer',
'created_at' => 'datetime'
];
}