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

54 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;
/**
* 笔记附件数据表模型
*
2022-01-17 21:06:27 +08:00
* @property int $id 自增ID
* @property int $user_id 用户ID
* @property int $article_id 笔记ID
* @property int $drive 文件驱动
* @property string $suffix 文件后缀名
* @property int $size 文件大小
* @property string $path 文件地址
* @property string $original_name 文件原名
* @property int $status 文件状态
* @property string $created_at 创建时间
* @property string $updated_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
];
}