table('crm_import_log', ['comment' => '资源导入记录表']) ->addColumn('employee_id', 'integer', ['comment'=>'员工id', 'null' => true]) ->addColumn('org_id', 'integer', ['comment'=>'orgid', 'null' => true]) ->addColumn('name', 'string', ['comment'=>'资源文件名', 'null' => true]) ->addColumn('count', 'integer', ['comment'=>'资源条数', 'null' => true]) ->addColumn('state', 'integer', ['comment'=>'状态:0未分配 1已分配', 'default' => 0]) ->addColumn('other', 'string', ['comment'=>'备注', 'null' => true]) ->addColumn('addtime', 'timestamp', ['comment'=>'创建时间', 'default' => 'CURRENT_TIMESTAMP']) ->create(); } }