geberate Device table and give relationships with User table