You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
539 B
22 lines
539 B
<?php
|
|
|
|
|
|
namespace app\common\model;
|
|
|
|
|
|
use EasySwoole\DDL\Blueprint\Table;
|
|
use EasySwoole\DDL\DDLBuilder;
|
|
|
|
class ImGroupModel extends BaseModel
|
|
{
|
|
protected $name = "im_group_";
|
|
protected $comment = "测试表";
|
|
|
|
protected function generateTableField(): array
|
|
{
|
|
return DDLBuilder::cols(function (Table $table) {
|
|
$table->colVarChar('stu_name', 30)->setColumnComment('学生姓名');
|
|
$table->colTinyInt('sex', 1)->setColumnComment('性别:1男,2女')->setDefaultValue(1);
|
|
});
|
|
}
|
|
}
|