add generate define model worker