refactor: 修改model
This commit is contained in:
38
app/common/model/ArticleCategoryBaseModel.php
Normal file
38
app/common/model/ArticleCategoryBaseModel.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class ArticleCategoryBaseModel extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'article_category';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'pid' => 'int',
|
||||
'name' => 'string',
|
||||
'short_name' => 'string',
|
||||
'icon' => 'string',
|
||||
'desc' => 'string',
|
||||
'sort' => 'int',
|
||||
'level' => 'int',
|
||||
'is_show' => 'int',
|
||||
'seo_title' => 'string',
|
||||
'seo_keywords' => 'string',
|
||||
'seo_desc' => 'string',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user