2020-11-04 17:36:52 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
|
|
|
|
2020-11-05 17:40:51 +08:00
|
|
|
namespace App\Model\Article;
|
|
|
|
|
|
|
|
use App\Model\BaseModel;
|
2020-11-04 17:36:52 +08:00
|
|
|
|
|
|
|
/**
|
2020-11-05 17:40:51 +08:00
|
|
|
* 笔记详情数据表模型
|
|
|
|
*
|
2021-04-20 16:30:57 +08:00
|
|
|
* @property integer $id 笔记详情ID
|
2020-11-13 23:09:56 +08:00
|
|
|
* @property integer $article_id 笔记ID
|
2021-04-20 16:30:57 +08:00
|
|
|
* @property string $md_content 笔记MD格式内容
|
|
|
|
* @property string $content 笔记html格式内容
|
2020-11-05 17:40:51 +08:00
|
|
|
*
|
|
|
|
* @package App\Model\Article
|
2020-11-04 17:36:52 +08:00
|
|
|
*/
|
2020-11-05 17:40:51 +08:00
|
|
|
class ArticleDetail extends BaseModel
|
2020-11-04 17:36:52 +08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The table associated with the model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $table = 'article_detail';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2020-11-05 17:40:51 +08:00
|
|
|
protected $fillable = [
|
|
|
|
'article_id',
|
|
|
|
'md_content',
|
|
|
|
'content',
|
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that should be cast to native types.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2020-11-05 17:40:51 +08:00
|
|
|
protected $casts = [
|
2021-04-20 16:30:57 +08:00
|
|
|
'id' => 'integer',
|
2020-11-05 17:40:51 +08:00
|
|
|
'article_id' => 'integer'
|
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
}
|