37 lines
863 B
PHP
37 lines
863 B
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\common\model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class ArticleCategoryBaseModel extends BaseModel
|
|
{
|
|
// 表名
|
|
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',
|
|
];
|
|
}
|