table('crm_import_retrieve_log', ['comment'=>'资源库分配回收记录表']) ->addColumn('employee_id', 'integer', ['comment' => '员工id','default'=>0]) ->addColumn('root_id', 'integer', ['comment' => '企业ID','default'=>0]) ->addColumn('crm_res_id', 'integer', ['comment' => '资源库ID','default'=>0]) ->addColumn('type', 'integer', ['comment' => '0分配,1回收','default'=>1]) ->addColumn('source_type', 'integer', ['comment' => '操作位置 0志远装饰后台,1网销端后台,2小程序,3app','default'=>0]) ->addColumn('count', 'integer', ['comment' => '分配/回收数量','default'=>0]) ->addColumn('customer_ids', 'text', ['comment' => '操作客户id']) ->addColumn('addtime', 'integer', ['comment' => '操作时间','default'=>0]) ->addColumn('operator_employee_id', 'integer', ['comment' => '操作人id','default'=>0]) ->create(); } }