add custom field(is it possible in yii)

i have table name company with fields id,name,address,i have generated model,view,controller now i m giving user to permission to add field to table ,but not same in company table,diffrene table custom field table ,now it realted to company so how i add this table custom field 's attribute two company and validation and add to view,

how to do any one tell wat is good approach