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

52 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;
/**
* 笔记附件数据表模型
*
2021-04-20 16:30:57 +08:00
* @property integer $id 笔记附件ID
* @property integer $user_id 用户ID
* @property integer $article_id 笔记ID
2022-01-16 10:29:16 +08:00
* @property integer $drive 文件驱动
2021-04-20 16:30:57 +08:00
* @property string $file_suffix 文件后缀名
* @property int $file_size 文件大小
2022-01-16 10:29:16 +08:00
* @property string $path 文件相对路径
2021-04-20 16:30:57 +08:00
* @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',
2022-01-16 10:29:16 +08:00
'drive',
'suffix',
'size',
'path',
2020-11-28 19:59:10 +08:00
'original_name',
'status',
'created_at',
2022-01-16 10:29:16 +08:00
'updated_at',
2020-11-28 19:59:10 +08:00
'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
'user_id' => 'integer',
2020-11-05 17:40:51 +08:00
'article_id' => 'integer',
2022-01-16 10:29:16 +08:00
'size' => 'integer',
2021-04-20 16:30:57 +08:00
'status' => 'integer',
2022-01-16 10:29:16 +08:00
'created_at' => 'datetime',
'updated_at' => 'datetime',
2020-11-05 17:40:51 +08:00
];
}