refactor: 修改国家及语言表和模型

This commit is contained in:
2025-03-14 11:54:08 +08:00
parent 88cb249120
commit 1235253519
4 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ class CreateSysCountry extends Migrator
{
$table = $this->table('sys_country', ['engine' => 'MyISAM', 'comment' => '国家表']);
$table->addColumn('name', 'string', ['limit' => 120, 'null' => false, 'default' => '', 'comment' => '国家名称'])
->addColumn('en_name', 'string', ['limit' => 120, 'null' => true, 'default' => null, 'comment' => '国家英文名称'])
->addColumn('code', 'string', ['limit' => 64, 'null' => false, 'default' => '', 'comment' => '国家代码'])
->addColumn('icon', 'string', ['limit' => 64, 'default' => null, 'comment' => '国家图标'])
->addColumn('status', 'boolean', ['default' => 1, 'comment' => '状态:1启用,0禁用'])