deployment and resource added with many to many