32 lines
601 B
PHP
32 lines
601 B
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\common\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class CountryBaseModel extends Model
|
|
{
|
|
// 表名
|
|
protected $name = 'sys_country';
|
|
|
|
// 主键
|
|
protected $pk = 'id';
|
|
|
|
// 字段信息
|
|
protected $schema = [
|
|
'id' => 'int',
|
|
'name' => 'string',
|
|
'en_name' => 'string',
|
|
'code' => 'string',
|
|
'icon' => 'string',
|
|
'status' => 'int',
|
|
'sort' => 'int',
|
|
'created_at' => 'datetime',
|
|
'updated_at' => 'datetime',
|
|
];
|
|
}
|