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

49 lines
827 B
PHP
Raw Normal View History

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
* 笔记详情数据表模型
*
2020-11-04 17:36:52 +08:00
* @property int $id
* @property int $article_id
* @property string $md_content
* @property string $content
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 = [
'id' => 'integer',
'article_id' => 'integer'
];
2020-11-04 17:36:52 +08:00
}