fix bug:cant init model when it is not marked as an autogen table