table('admin', ['comment' => '总管理员']) ->addColumn('openid', 'string', ['comment'=>'绑定用户', 'default' => '']) ->addColumn('account', 'string', ['comment'=>'登录账号', 'default' => '']) ->addColumn('password', 'string', ['comment'=>'密码', 'default' => '']) ->addColumn('login_count', 'integer', ['comment'=>'登录次数', 'default' => 0]) ->addColumn('status', 'integer', ['comment'=>'状态:0正常 1禁止', 'default' => 0]) ->addColumn('login_ip', 'string', ['comment'=>'最后登录id', 'default' => '']) ->addColumn('addtime', 'timestamp', ['comment'=>'最后登录时间', 'null' => true]) ->create(); } }