How to set a foreign key while creating a Custom Data Type?

Foreign Key button is not enabled while creating Custom Data Type. How to get this option to set a foreign key

  Discussion posts and replies are publicly visible

Parents Reply Children