Fix datatype of user id
Add server Device model
Add new resource devices