Create primary index (key) in code.

Would you tell me how to create a primary index of more than one field
in code. I mean the primary key is combination of two or more fields.

thanks

Leo