generate sql from generat model command