added manyrelationship table and added relationship definitions in models