24 lines
546 B
PHP
24 lines
546 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace app\model;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @property integer $id 主键(主键)
|
||
|
|
* @property string $username 用户名
|
||
|
|
* @property string $nickname 昵称
|
||
|
|
* @property string $password 密码
|
||
|
|
* @property string $created_at 创建时间
|
||
|
|
* @property string $updated_at 更新时间
|
||
|
|
* @property integer $status 禁用
|
||
|
|
*/
|
||
|
|
class Category extends Base
|
||
|
|
{
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'insert' => [
|
||
|
|
'status' => 1
|
||
|
|
],
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|