generate Join model and it's resource controller